-
Notifications
You must be signed in to change notification settings - Fork 467
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
Replace bandit, isort, pylint, pyupgrade, and flake8 plus plugins with ruff #2779
Conversation
2609476
to
65a93d1
Compare
This appears to be working, but in order to check:
Could you intentionally create an error with each one of these? That way we can see that it works. Then you can |
I did so in my creation of this pull request. It was trial and error all the way to this exact configuration. You are not alone in thinking that anything so complex that happens in subsecond time must be broken. That sentiment is mentioned multiple times in https://beta.ruff.rs/docs/#testimonials I would encourage you to |
Just a thought about the ruff pitch itself:
I would argue that nowadays “efficiency” in terms of carbon footprint is more important than speed in CI code. That said, I am certain that faster code is more efficient – unless speed is achieved only by parallelization. My only concern was that ruff might be hard to install for Python developers, but it can actually be installed with a simple |
This isn't quite what I'm getting at -- I have used ruff in other projects and I like it quite a lot. I just want to see on GitHub (now) that the configuration you've added to this project/CIs/whatever does what it's supposed to do when people do bad things in their PRs. So I'm asking for you to add a tiny commit here that does some bad things style-wise so we can confirm by eye that how you've configured ruff here will work like our existing setup. Then we revert the commit. Without doing this, then some of these replaced checks might have been incorrectly replaced and we wouldn't know for perhaps a long time. Make sense? |
- name: Ruff with annotations | ||
run: ruff --format=github --select=ANN --ignore=ANN101,ANN401 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this -- will it actually annotate a flake
failure the way actions-flake
would have? Let's find out by testing it here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Ruff with annotations | |
run: ruff --format=github --select=ANN --ignore=ANN101,ANN401 . | |
- name: Ruff with annotations | |
run: ruff --select=ANN --ignore=ANN101,ANN401 . |
Good call. As I say below, this private run confuses me. This can generate errors about Python annotations but those errors do not become GitHub annotations.
name: ruff | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install --user ruff | ||
- run: ruff --format=github . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this at all given that it's run in .github/workflows/codespell-private.yml
already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not really understand the purpose / differentiation of "private" but it is only testing --select=ANN
which is a much narrower set of rules than this Ruff action.
I disabled ANN101 in one and ANN401 in the other so we could see that both do their thing.
Errors galore in Let's create errors in bandit, isort, pylint, pyupgrade, and flake8 |
950c833
to
036f908
Compare
@larsoner Please review the error annotation and let me know when I can revert the intentional errors. |
Yes the annotations look great, feel free to revert! |
754a7f2
to
1b981d8
Compare
Reminder:
|
Thanks @cclauss ! |
Thanks for codespell... It is awesome! |
Unfortunately, the ruff action complains about issues that are not relevant to a pull request:
See for example #2767. What's the best course of action here? Get rid of C901, PLR0912 and PLR0915? Tell ruff to disregard anything that is not relevant to the current patch? But how? |
The best solution would be to improve the code by reducing its complexity. These are well-proven indicators of code that will be difficult to maintain. If that is not an option then modify the following lines in
|
Modifying the code is a good long-term idea. The problem here is that these rules break even small merge requests that do not add complexity, but only slightly modify existing complex code. |
We put guardrails in place so that cars do not drive off the cliff. When maintainers review pull requests, they should encourage contributors to take an active role in keeping the garden well-maintained. |
You cannot expect contributors fixing a bug by modifying a few lines of code to refactor the whole existing code base instead. Have you had a look at #2767? I cannot refactor the whole codespell codebase, it would take months or years given the resources I can put in it. Reducing code complexity is a good long-term idea. But you cannot stop any short-term maintenance effort until the whole code base has been refactored. |
@cclauss I agree we should try to make our code better when possible. But @DimitriPapadopoulos if you think the code is clean enough and |
It's just that the codespell code is already too complex. So, small change might raise CI alerts and put off new contributors. Complexity metrics are OK, of course, however I suspect some degree of flexibility is useful too. Not sure how to best handle flexibility. |
Ultimately things like code coverage and complexity checkers can act as a guide not an absolute rule. So on a case-by-case basis we can relax/ignore some checks when it makes sense |
Agreed that these are not absolute rules and flexibility is required. My sense is that the best way to provide that flexibility is via a discussion during pull request review like #2767 (review) . I have found that contributors usually speak up when confused or blocked. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [codespell-project/codespell](https://github.com/codespell-project/codespell) | repository | patch | `v2.2.4` -> `v2.2.5` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>codespell-project/codespell</summary> ### [`v2.2.5`](https://github.com/codespell-project/codespell/releases/tag/v2.2.5) [Compare Source](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.5) #### What's Changed - Add fixing consciousely typo by [@​yarikoptic](https://github.com/yarikoptic) in [https://github.com/codespell-project/codespell/pull/2777](https://github.com/codespell-project/codespell/pull/2777) - atalog typo (saw twice in a project) by [@​yarikoptic](https://github.com/yarikoptic) in [https://github.com/codespell-project/codespell/pull/2782](https://github.com/codespell-project/codespell/pull/2782) - created fstrings by [@​marksmayo](https://github.com/marksmayo) in [https://github.com/codespell-project/codespell/pull/2784](https://github.com/codespell-project/codespell/pull/2784) - Replace bandit, isort, pylint, pyupgrade, and flake8 plus plugins with ruff by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2779](https://github.com/codespell-project/codespell/pull/2779) - Add Microsoft Mispelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2789](https://github.com/codespell-project/codespell/pull/2789) - Use Latest Version In README Pre-Commit Example by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2788](https://github.com/codespell-project/codespell/pull/2788) - ruff: Use format specifiers instead of percent format by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2787](https://github.com/codespell-project/codespell/pull/2787) - New typos by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2793](https://github.com/codespell-project/codespell/pull/2793) - Ruff: Ignore new rule PLC1901 by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2797](https://github.com/codespell-project/codespell/pull/2797) - Add various typo fixes by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2795](https://github.com/codespell-project/codespell/pull/2795) - Another suggestion by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2798](https://github.com/codespell-project/codespell/pull/2798) - Fix AssertionError when opening with chardet by [@​n-thumann](https://github.com/n-thumann) in [https://github.com/codespell-project/codespell/pull/2785](https://github.com/codespell-project/codespell/pull/2785) - Fix typo (and variants) from xxHash by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2761](https://github.com/codespell-project/codespell/pull/2761) - Add `huld`->`hold` Spelling Mistake by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2792](https://github.com/codespell-project/codespell/pull/2792) - Fix CI issues by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2796](https://github.com/codespell-project/codespell/pull/2796) - CI: fix new ruff error B028 by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2802](https://github.com/codespell-project/codespell/pull/2802) - Skip subdirectories of hidden directories by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2541](https://github.com/codespell-project/codespell/pull/2541) - Add tweek(s)->tweak(s) correction by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2804](https://github.com/codespell-project/codespell/pull/2804) - Add supoort->support by [@​thughes](https://github.com/thughes) in [https://github.com/codespell-project/codespell/pull/2806](https://github.com/codespell-project/codespell/pull/2806) - Add Suggestion For `readded` Mispelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2805](https://github.com/codespell-project/codespell/pull/2805) - Add displaing->displaying by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2808](https://github.com/codespell-project/codespell/pull/2808) - Another suggestion for stati by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2810](https://github.com/codespell-project/codespell/pull/2810) - Add dimaond -> diamond by [@​Moiman](https://github.com/Moiman) in [https://github.com/codespell-project/codespell/pull/2813](https://github.com/codespell-project/codespell/pull/2813) - Add vai->via, vie by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2815](https://github.com/codespell-project/codespell/pull/2815) - Remove invalid correction - Kwanza = currency of Angola by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2803](https://github.com/codespell-project/codespell/pull/2803) - sinoid and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2807](https://github.com/codespell-project/codespell/pull/2807) - Add excludle->exclude by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2814](https://github.com/codespell-project/codespell/pull/2814) - Add gadjet->gadget and friend by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2818](https://github.com/codespell-project/codespell/pull/2818) - Add togueter->together by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2821](https://github.com/codespell-project/codespell/pull/2821) - Add "mutabl->mutable" by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2822](https://github.com/codespell-project/codespell/pull/2822) - Add containin->containing by [@​janosh](https://github.com/janosh) in [https://github.com/codespell-project/codespell/pull/2824](https://github.com/codespell-project/codespell/pull/2824) - Add mandess->madness by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2825](https://github.com/codespell-project/codespell/pull/2825) - some fixes by [@​marksmayo](https://github.com/marksmayo) in [https://github.com/codespell-project/codespell/pull/2820](https://github.com/codespell-project/codespell/pull/2820) - Fix new ruff errors reported by CI by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2834](https://github.com/codespell-project/codespell/pull/2834) - Add fusipn->fusion by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2836](https://github.com/codespell-project/codespell/pull/2836) - Add 'subcription->subscription' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2832](https://github.com/codespell-project/codespell/pull/2832) - Add 'promtp->prompt' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2833](https://github.com/codespell-project/codespell/pull/2833) - Add 'endpdoint' as a misspelling of 'endpoint' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2830](https://github.com/codespell-project/codespell/pull/2830) - Add more misspellings of 'identities' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2829](https://github.com/codespell-project/codespell/pull/2829) - Friends of existing typos by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2837](https://github.com/codespell-project/codespell/pull/2837) - Fix [`66ec667`](https://github.com/codespell-project/codespell/commit/66ec667) by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2838](https://github.com/codespell-project/codespell/pull/2838) - equivallent and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2827](https://github.com/codespell-project/codespell/pull/2827) - Add delpoys->deploys by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2842](https://github.com/codespell-project/codespell/pull/2842) - Added variations on 'difference' by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2841](https://github.com/codespell-project/codespell/pull/2841) - Add 'canoncical->canonical' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2831](https://github.com/codespell-project/codespell/pull/2831) - Add additional typos by [@​kianmeng](https://github.com/kianmeng) in [https://github.com/codespell-project/codespell/pull/2835](https://github.com/codespell-project/codespell/pull/2835) - Add spelling corrections for inject and variants. by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2846](https://github.com/codespell-project/codespell/pull/2846) - Add 'credentail->credential' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2844](https://github.com/codespell-project/codespell/pull/2844) - Add 'requestor->requester' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2845](https://github.com/codespell-project/codespell/pull/2845) - Update README.rst by [@​andyholmes](https://github.com/andyholmes) in [https://github.com/codespell-project/codespell/pull/2466](https://github.com/codespell-project/codespell/pull/2466) - Add exrension(s)->extension(s) by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2847](https://github.com/codespell-project/codespell/pull/2847) - Add facttory->factory and facttories-> factories by [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) in [https://github.com/codespell-project/codespell/pull/2848](https://github.com/codespell-project/codespell/pull/2848) - Add several spelling corrections by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2849](https://github.com/codespell-project/codespell/pull/2849) - Add comtaining->containing by [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) in [https://github.com/codespell-project/codespell/pull/2855](https://github.com/codespell-project/codespell/pull/2855) - topoplogical and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2854](https://github.com/codespell-project/codespell/pull/2854) - Add placehoulder->placeholder by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2856](https://github.com/codespell-project/codespell/pull/2856) - More typos from GlobalProtect-openconnect by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2850](https://github.com/codespell-project/codespell/pull/2850) - Add spelling correction for siver->silver/sliver/diver by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2858](https://github.com/codespell-project/codespell/pull/2858) - Add assertino->assertion by [@​sourcefrog](https://github.com/sourcefrog) in [https://github.com/codespell-project/codespell/pull/2859](https://github.com/codespell-project/codespell/pull/2859) - add notority->notoriety by [@​EdwardBetts](https://github.com/EdwardBetts) in [https://github.com/codespell-project/codespell/pull/2861](https://github.com/codespell-project/codespell/pull/2861) - Misspellings from eLabFTW by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2863](https://github.com/codespell-project/codespell/pull/2863) - Add `invirant{,s}->invariant{,s}` by [@​ojeda](https://github.com/ojeda) in [https://github.com/codespell-project/codespell/pull/2870](https://github.com/codespell-project/codespell/pull/2870) - Add `alloccat*->allocat*` by [@​ojeda](https://github.com/ojeda) in [https://github.com/codespell-project/codespell/pull/2869](https://github.com/codespell-project/codespell/pull/2869) - Add "multiply"/"multiplies" variations to instances of "multiple" by [@​jdufresne](https://github.com/jdufresne) in [https://github.com/codespell-project/codespell/pull/2872](https://github.com/codespell-project/codespell/pull/2872) - Add strin->string and optiona->optional by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2817](https://github.com/codespell-project/codespell/pull/2817) - Add wellplate -> well plate by [@​claydugo](https://github.com/claydugo) in [https://github.com/codespell-project/codespell/pull/2873](https://github.com/codespell-project/codespell/pull/2873) - Add `afile` Misspelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2876](https://github.com/codespell-project/codespell/pull/2876) - Ignore 'misspellings' due to string escapes by [@​Zac-HD](https://github.com/Zac-HD) in [https://github.com/codespell-project/codespell/pull/2875](https://github.com/codespell-project/codespell/pull/2875) - Add `pre-poulate` Misspellings by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2878](https://github.com/codespell-project/codespell/pull/2878) #### New Contributors - [@​marksmayo](https://github.com/marksmayo) made their first contribution in [https://github.com/codespell-project/codespell/pull/2784](https://github.com/codespell-project/codespell/pull/2784) - [@​Casey-Kiewit](https://github.com/Casey-Kiewit) made their first contribution in [https://github.com/codespell-project/codespell/pull/2789](https://github.com/codespell-project/codespell/pull/2789) - [@​gforcada](https://github.com/gforcada) made their first contribution in [https://github.com/codespell-project/codespell/pull/2793](https://github.com/codespell-project/codespell/pull/2793) - [@​n-thumann](https://github.com/n-thumann) made their first contribution in [https://github.com/codespell-project/codespell/pull/2785](https://github.com/codespell-project/codespell/pull/2785) - [@​Moiman](https://github.com/Moiman) made their first contribution in [https://github.com/codespell-project/codespell/pull/2813](https://github.com/codespell-project/codespell/pull/2813) - [@​sirosen](https://github.com/sirosen) made their first contribution in [https://github.com/codespell-project/codespell/pull/2822](https://github.com/codespell-project/codespell/pull/2822) - [@​andyholmes](https://github.com/andyholmes) made their first contribution in [https://github.com/codespell-project/codespell/pull/2466](https://github.com/codespell-project/codespell/pull/2466) - [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) made their first contribution in [https://github.com/codespell-project/codespell/pull/2848](https://github.com/codespell-project/codespell/pull/2848) - [@​sourcefrog](https://github.com/sourcefrog) made their first contribution in [https://github.com/codespell-project/codespell/pull/2859](https://github.com/codespell-project/codespell/pull/2859) - [@​ojeda](https://github.com/ojeda) made their first contribution in [https://github.com/codespell-project/codespell/pull/2870](https://github.com/codespell-project/codespell/pull/2870) - [@​claydugo](https://github.com/claydugo) made their first contribution in [https://github.com/codespell-project/codespell/pull/2873](https://github.com/codespell-project/codespell/pull/2873) - [@​Zac-HD](https://github.com/Zac-HD) made their first contribution in [https://github.com/codespell-project/codespell/pull/2875](https://github.com/codespell-project/codespell/pull/2875) **Full Changelog**: codespell-project/codespell@v2.2.4...v2.2.5 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [codespell-project/codespell](https://github.com/codespell-project/codespell) | repository | patch | `v2.2.4` -> `v2.2.5` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>codespell-project/codespell</summary> ### [`v2.2.5`](https://github.com/codespell-project/codespell/releases/tag/v2.2.5) [Compare Source](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.5) #### What's Changed - Add fixing consciousely typo by [@​yarikoptic](https://github.com/yarikoptic) in [https://github.com/codespell-project/codespell/pull/2777](https://github.com/codespell-project/codespell/pull/2777) - atalog typo (saw twice in a project) by [@​yarikoptic](https://github.com/yarikoptic) in [https://github.com/codespell-project/codespell/pull/2782](https://github.com/codespell-project/codespell/pull/2782) - created fstrings by [@​marksmayo](https://github.com/marksmayo) in [https://github.com/codespell-project/codespell/pull/2784](https://github.com/codespell-project/codespell/pull/2784) - Replace bandit, isort, pylint, pyupgrade, and flake8 plus plugins with ruff by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2779](https://github.com/codespell-project/codespell/pull/2779) - Add Microsoft Mispelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2789](https://github.com/codespell-project/codespell/pull/2789) - Use Latest Version In README Pre-Commit Example by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2788](https://github.com/codespell-project/codespell/pull/2788) - ruff: Use format specifiers instead of percent format by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2787](https://github.com/codespell-project/codespell/pull/2787) - New typos by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2793](https://github.com/codespell-project/codespell/pull/2793) - Ruff: Ignore new rule PLC1901 by [@​cclauss](https://github.com/cclauss) in [https://github.com/codespell-project/codespell/pull/2797](https://github.com/codespell-project/codespell/pull/2797) - Add various typo fixes by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2795](https://github.com/codespell-project/codespell/pull/2795) - Another suggestion by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2798](https://github.com/codespell-project/codespell/pull/2798) - Fix AssertionError when opening with chardet by [@​n-thumann](https://github.com/n-thumann) in [https://github.com/codespell-project/codespell/pull/2785](https://github.com/codespell-project/codespell/pull/2785) - Fix typo (and variants) from xxHash by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2761](https://github.com/codespell-project/codespell/pull/2761) - Add `huld`->`hold` Spelling Mistake by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2792](https://github.com/codespell-project/codespell/pull/2792) - Fix CI issues by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2796](https://github.com/codespell-project/codespell/pull/2796) - CI: fix new ruff error B028 by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2802](https://github.com/codespell-project/codespell/pull/2802) - Skip subdirectories of hidden directories by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2541](https://github.com/codespell-project/codespell/pull/2541) - Add tweek(s)->tweak(s) correction by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2804](https://github.com/codespell-project/codespell/pull/2804) - Add supoort->support by [@​thughes](https://github.com/thughes) in [https://github.com/codespell-project/codespell/pull/2806](https://github.com/codespell-project/codespell/pull/2806) - Add Suggestion For `readded` Mispelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2805](https://github.com/codespell-project/codespell/pull/2805) - Add displaing->displaying by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2808](https://github.com/codespell-project/codespell/pull/2808) - Another suggestion for stati by [@​gforcada](https://github.com/gforcada) in [https://github.com/codespell-project/codespell/pull/2810](https://github.com/codespell-project/codespell/pull/2810) - Add dimaond -> diamond by [@​Moiman](https://github.com/Moiman) in [https://github.com/codespell-project/codespell/pull/2813](https://github.com/codespell-project/codespell/pull/2813) - Add vai->via, vie by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2815](https://github.com/codespell-project/codespell/pull/2815) - Remove invalid correction - Kwanza = currency of Angola by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2803](https://github.com/codespell-project/codespell/pull/2803) - sinoid and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2807](https://github.com/codespell-project/codespell/pull/2807) - Add excludle->exclude by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2814](https://github.com/codespell-project/codespell/pull/2814) - Add gadjet->gadget and friend by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2818](https://github.com/codespell-project/codespell/pull/2818) - Add togueter->together by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2821](https://github.com/codespell-project/codespell/pull/2821) - Add "mutabl->mutable" by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2822](https://github.com/codespell-project/codespell/pull/2822) - Add containin->containing by [@​janosh](https://github.com/janosh) in [https://github.com/codespell-project/codespell/pull/2824](https://github.com/codespell-project/codespell/pull/2824) - Add mandess->madness by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2825](https://github.com/codespell-project/codespell/pull/2825) - some fixes by [@​marksmayo](https://github.com/marksmayo) in [https://github.com/codespell-project/codespell/pull/2820](https://github.com/codespell-project/codespell/pull/2820) - Fix new ruff errors reported by CI by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2834](https://github.com/codespell-project/codespell/pull/2834) - Add fusipn->fusion by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2836](https://github.com/codespell-project/codespell/pull/2836) - Add 'subcription->subscription' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2832](https://github.com/codespell-project/codespell/pull/2832) - Add 'promtp->prompt' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2833](https://github.com/codespell-project/codespell/pull/2833) - Add 'endpdoint' as a misspelling of 'endpoint' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2830](https://github.com/codespell-project/codespell/pull/2830) - Add more misspellings of 'identities' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2829](https://github.com/codespell-project/codespell/pull/2829) - Friends of existing typos by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2837](https://github.com/codespell-project/codespell/pull/2837) - Fix [`66ec667`](https://github.com/codespell-project/codespell/commit/66ec667) by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2838](https://github.com/codespell-project/codespell/pull/2838) - equivallent and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2827](https://github.com/codespell-project/codespell/pull/2827) - Add delpoys->deploys by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2842](https://github.com/codespell-project/codespell/pull/2842) - Added variations on 'difference' by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2841](https://github.com/codespell-project/codespell/pull/2841) - Add 'canoncical->canonical' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2831](https://github.com/codespell-project/codespell/pull/2831) - Add additional typos by [@​kianmeng](https://github.com/kianmeng) in [https://github.com/codespell-project/codespell/pull/2835](https://github.com/codespell-project/codespell/pull/2835) - Add spelling corrections for inject and variants. by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2846](https://github.com/codespell-project/codespell/pull/2846) - Add 'credentail->credential' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2844](https://github.com/codespell-project/codespell/pull/2844) - Add 'requestor->requester' by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2845](https://github.com/codespell-project/codespell/pull/2845) - Update README.rst by [@​andyholmes](https://github.com/andyholmes) in [https://github.com/codespell-project/codespell/pull/2466](https://github.com/codespell-project/codespell/pull/2466) - Add exrension(s)->extension(s) by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2847](https://github.com/codespell-project/codespell/pull/2847) - Add facttory->factory and facttories-> factories by [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) in [https://github.com/codespell-project/codespell/pull/2848](https://github.com/codespell-project/codespell/pull/2848) - Add several spelling corrections by [@​luzpaz](https://github.com/luzpaz) in [https://github.com/codespell-project/codespell/pull/2849](https://github.com/codespell-project/codespell/pull/2849) - Add comtaining->containing by [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) in [https://github.com/codespell-project/codespell/pull/2855](https://github.com/codespell-project/codespell/pull/2855) - topoplogical and friends by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2854](https://github.com/codespell-project/codespell/pull/2854) - Add placehoulder->placeholder by [@​sirosen](https://github.com/sirosen) in [https://github.com/codespell-project/codespell/pull/2856](https://github.com/codespell-project/codespell/pull/2856) - More typos from GlobalProtect-openconnect by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2850](https://github.com/codespell-project/codespell/pull/2850) - Add spelling correction for siver->silver/sliver/diver by [@​cfi-gb](https://github.com/cfi-gb) in [https://github.com/codespell-project/codespell/pull/2858](https://github.com/codespell-project/codespell/pull/2858) - Add assertino->assertion by [@​sourcefrog](https://github.com/sourcefrog) in [https://github.com/codespell-project/codespell/pull/2859](https://github.com/codespell-project/codespell/pull/2859) - add notority->notoriety by [@​EdwardBetts](https://github.com/EdwardBetts) in [https://github.com/codespell-project/codespell/pull/2861](https://github.com/codespell-project/codespell/pull/2861) - Misspellings from eLabFTW by [@​DimitriPapadopoulos](https://github.com/DimitriPapadopoulos) in [https://github.com/codespell-project/codespell/pull/2863](https://github.com/codespell-project/codespell/pull/2863) - Add `invirant{,s}->invariant{,s}` by [@​ojeda](https://github.com/ojeda) in [https://github.com/codespell-project/codespell/pull/2870](https://github.com/codespell-project/codespell/pull/2870) - Add `alloccat*->allocat*` by [@​ojeda](https://github.com/ojeda) in [https://github.com/codespell-project/codespell/pull/2869](https://github.com/codespell-project/codespell/pull/2869) - Add "multiply"/"multiplies" variations to instances of "multiple" by [@​jdufresne](https://github.com/jdufresne) in [https://github.com/codespell-project/codespell/pull/2872](https://github.com/codespell-project/codespell/pull/2872) - Add strin->string and optiona->optional by [@​peternewman](https://github.com/peternewman) in [https://github.com/codespell-project/codespell/pull/2817](https://github.com/codespell-project/codespell/pull/2817) - Add wellplate -> well plate by [@​claydugo](https://github.com/claydugo) in [https://github.com/codespell-project/codespell/pull/2873](https://github.com/codespell-project/codespell/pull/2873) - Add `afile` Misspelling by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2876](https://github.com/codespell-project/codespell/pull/2876) - Ignore 'misspellings' due to string escapes by [@​Zac-HD](https://github.com/Zac-HD) in [https://github.com/codespell-project/codespell/pull/2875](https://github.com/codespell-project/codespell/pull/2875) - Add `pre-poulate` Misspellings by [@​Casey-Kiewit](https://github.com/Casey-Kiewit) in [https://github.com/codespell-project/codespell/pull/2878](https://github.com/codespell-project/codespell/pull/2878) #### New Contributors - [@​marksmayo](https://github.com/marksmayo) made their first contribution in [https://github.com/codespell-project/codespell/pull/2784](https://github.com/codespell-project/codespell/pull/2784) - [@​Casey-Kiewit](https://github.com/Casey-Kiewit) made their first contribution in [https://github.com/codespell-project/codespell/pull/2789](https://github.com/codespell-project/codespell/pull/2789) - [@​gforcada](https://github.com/gforcada) made their first contribution in [https://github.com/codespell-project/codespell/pull/2793](https://github.com/codespell-project/codespell/pull/2793) - [@​n-thumann](https://github.com/n-thumann) made their first contribution in [https://github.com/codespell-project/codespell/pull/2785](https://github.com/codespell-project/codespell/pull/2785) - [@​Moiman](https://github.com/Moiman) made their first contribution in [https://github.com/codespell-project/codespell/pull/2813](https://github.com/codespell-project/codespell/pull/2813) - [@​sirosen](https://github.com/sirosen) made their first contribution in [https://github.com/codespell-project/codespell/pull/2822](https://github.com/codespell-project/codespell/pull/2822) - [@​andyholmes](https://github.com/andyholmes) made their first contribution in [https://github.com/codespell-project/codespell/pull/2466](https://github.com/codespell-project/codespell/pull/2466) - [@​nils-van-zuijlen](https://github.com/nils-van-zuijlen) made their first contribution in [https://github.com/codespell-project/codespell/pull/2848](https://github.com/codespell-project/codespell/pull/2848) - [@​sourcefrog](https://github.com/sourcefrog) made their first contribution in [https://github.com/codespell-project/codespell/pull/2859](https://github.com/codespell-project/codespell/pull/2859) - [@​ojeda](https://github.com/ojeda) made their first contribution in [https://github.com/codespell-project/codespell/pull/2870](https://github.com/codespell-project/codespell/pull/2870) - [@​claydugo](https://github.com/claydugo) made their first contribution in [https://github.com/codespell-project/codespell/pull/2873](https://github.com/codespell-project/codespell/pull/2873) - [@​Zac-HD](https://github.com/Zac-HD) made their first contribution in [https://github.com/codespell-project/codespell/pull/2875](https://github.com/codespell-project/codespell/pull/2875) **Full Changelog**: codespell-project/codespell@v2.2.4...v2.2.5 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/flux-local). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Ruff supports over 500 lint rules including bandit, isort, pylint, pyupgrade, and flake8 plus its plugins and is written in Rust for speed.
The
ruff
Action uses minimal steps to run in ~10 seconds, rapidly providing intuitive GitHub Annotations to contributors.The
Required
in the checks below should be:flake8-annotation
and added toruff-annotation
which replaces it.isort
and added toruff
which replaces it.