Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it time to remove or replace crate-ci/typos? #130

Closed
paddyroddy opened this issue Sep 2, 2024 · 5 comments
Closed

Is it time to remove or replace crate-ci/typos? #130

paddyroddy opened this issue Sep 2, 2024 · 5 comments
Labels
problem Something isn't working

Comments

@paddyroddy
Copy link
Member

Short Description

Following a recent change, crate-ci/typos is causing many false positives. For now, I have commented them out #129. We previously had https://github.com/codespell-project/codespell. Maybe something else or remove altogether?

Evidence/Steps to Reproduce

No response

Acceptance Criteria/Expected Behaviour

No response

Details

No response

Resolution

No response

@paddyroddy paddyroddy added the problem Something isn't working label Sep 2, 2024
@paddyroddy
Copy link
Member Author

v1.24.4 seems to have fixed most of the issues? 🤞

@ruaridhg
Copy link

ruaridhg commented Sep 9, 2024

I don't know if this is related, but I'm getting a frustrating linting error due to US/UK spelling since it wants to correct the US spelling of synchronize which is actually what is needed in the test.yml:

typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `synchronize` should be `synchronise`
  --> .github/workflows/tests.yml:15:9
   |
15 |       - synchronize
   |         ^^^^^^^^^^^
   |

@ruaridhg
Copy link

ruaridhg commented Sep 9, 2024

I don't know if this is related, but I'm getting a frustrating linting error due to US/UK spelling since it wants to correct the US spelling of synchronize which is actually what is needed in the test.yml:

typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `synchronize` should be `synchronise`
  --> .github/workflows/tests.yml:15:9
   |
15 |       - synchronize
   |         ^^^^^^^^^^^
   |

Updating my .pre-commit-config.yaml with the latest version worked for mirsg-upgrades:

repos:
  - repo: https://github.com/UCL-MIRSG/.github
    rev: v0.107.0

@paddyroddy
Copy link
Member Author

I don't know if this is related, but I'm getting a frustrating linting error due to US/UK spelling since it wants to correct the US spelling of synchronize which is actually what is needed in the test.yml:

typos....................................................................Failed
- hook id: typos
- exit code: 2

error: `synchronize` should be `synchronise`
  --> .github/workflows/tests.yml:15:9
   |
15 |       - synchronize
   |         ^^^^^^^^^^^
   |

Yeah 100% related, as I said above typos has become a bit trigger happy. If nothing else we might want to remove this line

# - --locale=en-gb

@paddyroddy
Copy link
Member Author

I think turning off British English (sad times) has solved this. It is very handy, so let's keep it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants