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

Ignore 'misspellings' due to string escapes #2875

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Jun 14, 2023

This issue has been reported many times - #17, #111, #233 (comment), #1421, #1774, #2508, #2809, and #2871 at least. It would also let me enforce codespell at work, which would be nice!

Design: in order to make this super-fast, we do an O(1) check of each detected misspelling, with no new configuration or dictionary entries. If the match is preceeded by a backslash and begins with a letter which (with backslash) constitutes a common escape string, and the remainder of the word is not a misspelling, we skip it; otherwise we report exactly as we would now, with no special handling for the escapes. It's a minimalist change meant to address a common complaint, accepting a very few missed alarms in exchange for lower complexity for both maintainers and users.

Fixes #17, fixes #1774, and closes #174.

@DimitriPapadopoulos
Copy link
Collaborator

This change would be a change of paradigm: codespell is currently file type-agnostic. This change introduces a feature that is specific to files types that that support \ as an escape character, without even relying on the current regexp mechanism. That said, such file formats are common enough that we can give this a thought.

Also, this feature cannot be disabled, it is not optional.

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed @DimitriPapadopoulos this might cause some misses in some rare circumstances (binary files maybe?) but 1) it should help with false alarms and 2) it seems like 99% of people will want it "on" so I don't think we need to add an option yet. I'm inclined to fix the test (will commit shortly) then merge

codespell_lib/_codespell.py Outdated Show resolved Hide resolved
@larsoner
Copy link
Member

Okay let's give it a shot, thanks @Zac-HD !

@larsoner larsoner merged commit 463ac02 into codespell-project:master Jun 14, 2023
@Zac-HD Zac-HD deleted the handle-escape-sequences branch June 14, 2023 17:40
@Zac-HD
Copy link
Contributor Author

Zac-HD commented Jun 14, 2023

Thanks all! Any idea when the next release will be, so I can use it?

@larsoner
Copy link
Member

In theory https://github.com/codespell-project/codespell/releases/tag/v2.2.5 should cause a push to pip soon

@@ -97,6 +97,9 @@ def test_basic(
with fname.open("a") as f:
f.write("this is a test file\n")
assert cs.main(fname) == 0, "good"
with fname.open("a") as f:
f.write("var = '\\nDoes not error on newline'\n")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test relied on ndoes being in the dictionary, which I don't think it is.

I also found when adding a positive test that it doesn't match/trigger anyway because of the apostrophe at the start.

I've added some more thorough tests in #2879 .

Comment on lines +906 to +908
and line[char_before_idx] == "\\"
# bell, backspace, formfeed, newline, carriage-return, tab, vtab.
and word.startswith(("a", "b", "f", "n", "r", "t", "v"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't deal with anything where someone has put in e.g. \ to render a backslash (or \\ etc) and the following (unrelated) word is a typo.

@peternewman
Copy link
Collaborator

This change would be a change of paradigm: codespell is currently file type-agnostic. This change introduces a feature that is specific to files types that that support \ as an escape character

Agreed @DimitriPapadopoulos this might cause some misses in some rare circumstances (binary files maybe?)

RTF seems like it might possibly be the biggest/first hit (or maybe it's delimiters save it):
https://en.wikipedia.org/wiki/Rich_Text_Format#Code_syntax

Also, this feature cannot be disabled, it is not optional.

  1. it seems like 99% of people will want it "on" so I don't think we need to add an option yet.

Personally I think it would be nice to be able to turn it off, if someone finds an issue with it, or they just want to be more thorough. It wasn't very hard to find an edge case in #2880 .

renovate bot referenced this pull request in allenporter/pyrainbird Jun 15, 2023
[![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://togithub.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://togithub.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>codespell-project/codespell</summary>

###
[`v2.2.5`](https://togithub.com/codespell-project/codespell/releases/tag/v2.2.5)

[Compare
Source](https://togithub.com/codespell-project/codespell/compare/v2.2.4...v2.2.5)

#### What's Changed

- Add fixing consciousely typo by
[@&#8203;yarikoptic](https://togithub.com/yarikoptic) in
[https://github.com/codespell-project/codespell/pull/2777](https://togithub.com/codespell-project/codespell/pull/2777)
- atalog typo (saw twice in a project) by
[@&#8203;yarikoptic](https://togithub.com/yarikoptic) in
[https://github.com/codespell-project/codespell/pull/2782](https://togithub.com/codespell-project/codespell/pull/2782)
- created fstrings by
[@&#8203;marksmayo](https://togithub.com/marksmayo) in
[https://github.com/codespell-project/codespell/pull/2784](https://togithub.com/codespell-project/codespell/pull/2784)
- Replace bandit, isort, pylint, pyupgrade, and flake8 plus plugins with
ruff by [@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2779](https://togithub.com/codespell-project/codespell/pull/2779)
- Add Microsoft Mispelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2789](https://togithub.com/codespell-project/codespell/pull/2789)
- Use Latest Version In README Pre-Commit Example by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2788](https://togithub.com/codespell-project/codespell/pull/2788)
- ruff: Use format specifiers instead of percent format by
[@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2787](https://togithub.com/codespell-project/codespell/pull/2787)
- New typos by [@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2793](https://togithub.com/codespell-project/codespell/pull/2793)
- Ruff: Ignore new rule PLC1901 by
[@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2797](https://togithub.com/codespell-project/codespell/pull/2797)
- Add various typo fixes by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2795](https://togithub.com/codespell-project/codespell/pull/2795)
- Another suggestion by
[@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2798](https://togithub.com/codespell-project/codespell/pull/2798)
- Fix AssertionError when opening with chardet by
[@&#8203;n-thumann](https://togithub.com/n-thumann) in
[https://github.com/codespell-project/codespell/pull/2785](https://togithub.com/codespell-project/codespell/pull/2785)
- Fix typo (and variants) from xxHash by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2761](https://togithub.com/codespell-project/codespell/pull/2761)
- Add `huld`->`hold` Spelling Mistake by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2792](https://togithub.com/codespell-project/codespell/pull/2792)
- Fix CI issues by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2796](https://togithub.com/codespell-project/codespell/pull/2796)
- CI: fix new ruff error B028 by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2802](https://togithub.com/codespell-project/codespell/pull/2802)
- Skip subdirectories of hidden directories by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2541](https://togithub.com/codespell-project/codespell/pull/2541)
- Add tweek(s)->tweak(s) correction by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2804](https://togithub.com/codespell-project/codespell/pull/2804)
- Add supoort->support by
[@&#8203;thughes](https://togithub.com/thughes) in
[https://github.com/codespell-project/codespell/pull/2806](https://togithub.com/codespell-project/codespell/pull/2806)
- Add Suggestion For `readded` Mispelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2805](https://togithub.com/codespell-project/codespell/pull/2805)
- Add displaing->displaying by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2808](https://togithub.com/codespell-project/codespell/pull/2808)
- Another suggestion for stati by
[@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2810](https://togithub.com/codespell-project/codespell/pull/2810)
- Add dimaond -> diamond by
[@&#8203;Moiman](https://togithub.com/Moiman) in
[https://github.com/codespell-project/codespell/pull/2813](https://togithub.com/codespell-project/codespell/pull/2813)
- Add vai->via, vie by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2815](https://togithub.com/codespell-project/codespell/pull/2815)
- Remove invalid correction - Kwanza = currency of Angola by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2803](https://togithub.com/codespell-project/codespell/pull/2803)
- sinoid and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2807](https://togithub.com/codespell-project/codespell/pull/2807)
- Add excludle->exclude by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2814](https://togithub.com/codespell-project/codespell/pull/2814)
- Add gadjet->gadget and friend by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2818](https://togithub.com/codespell-project/codespell/pull/2818)
- Add togueter->together by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2821](https://togithub.com/codespell-project/codespell/pull/2821)
- Add "mutabl->mutable" by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2822](https://togithub.com/codespell-project/codespell/pull/2822)
- Add containin->containing by
[@&#8203;janosh](https://togithub.com/janosh) in
[https://github.com/codespell-project/codespell/pull/2824](https://togithub.com/codespell-project/codespell/pull/2824)
- Add mandess->madness by [@&#8203;luzpaz](https://togithub.com/luzpaz)
in
[https://github.com/codespell-project/codespell/pull/2825](https://togithub.com/codespell-project/codespell/pull/2825)
- some fixes by [@&#8203;marksmayo](https://togithub.com/marksmayo) in
[https://github.com/codespell-project/codespell/pull/2820](https://togithub.com/codespell-project/codespell/pull/2820)
- Fix new ruff errors reported by CI by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2834](https://togithub.com/codespell-project/codespell/pull/2834)
- Add fusipn->fusion by [@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2836](https://togithub.com/codespell-project/codespell/pull/2836)
- Add 'subcription->subscription' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2832](https://togithub.com/codespell-project/codespell/pull/2832)
- Add 'promtp->prompt' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2833](https://togithub.com/codespell-project/codespell/pull/2833)
- Add 'endpdoint' as a misspelling of 'endpoint' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2830](https://togithub.com/codespell-project/codespell/pull/2830)
- Add more misspellings of 'identities' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2829](https://togithub.com/codespell-project/codespell/pull/2829)
- Friends of existing typos by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2837](https://togithub.com/codespell-project/codespell/pull/2837)
- Fix
[`66ec667`](https://togithub.com/codespell-project/codespell/commit/66ec667)
by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2838](https://togithub.com/codespell-project/codespell/pull/2838)
- equivallent and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2827](https://togithub.com/codespell-project/codespell/pull/2827)
- Add delpoys->deploys by [@&#8203;luzpaz](https://togithub.com/luzpaz)
in
[https://github.com/codespell-project/codespell/pull/2842](https://togithub.com/codespell-project/codespell/pull/2842)
- Added variations on 'difference' by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2841](https://togithub.com/codespell-project/codespell/pull/2841)
- Add 'canoncical->canonical' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2831](https://togithub.com/codespell-project/codespell/pull/2831)
- Add additional typos by
[@&#8203;kianmeng](https://togithub.com/kianmeng) in
[https://github.com/codespell-project/codespell/pull/2835](https://togithub.com/codespell-project/codespell/pull/2835)
- Add spelling corrections for inject and variants. by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2846](https://togithub.com/codespell-project/codespell/pull/2846)
- Add 'credentail->credential' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2844](https://togithub.com/codespell-project/codespell/pull/2844)
- Add 'requestor->requester' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2845](https://togithub.com/codespell-project/codespell/pull/2845)
- Update README.rst by
[@&#8203;andyholmes](https://togithub.com/andyholmes) in
[https://github.com/codespell-project/codespell/pull/2466](https://togithub.com/codespell-project/codespell/pull/2466)
- Add exrension(s)->extension(s) by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2847](https://togithub.com/codespell-project/codespell/pull/2847)
- Add facttory->factory and facttories-> factories by
[@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) in
[https://github.com/codespell-project/codespell/pull/2848](https://togithub.com/codespell-project/codespell/pull/2848)
- Add several spelling corrections by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2849](https://togithub.com/codespell-project/codespell/pull/2849)
- Add comtaining->containing by
[@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) in
[https://github.com/codespell-project/codespell/pull/2855](https://togithub.com/codespell-project/codespell/pull/2855)
- topoplogical and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2854](https://togithub.com/codespell-project/codespell/pull/2854)
- Add placehoulder->placeholder by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2856](https://togithub.com/codespell-project/codespell/pull/2856)
- More typos from GlobalProtect-openconnect by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2850](https://togithub.com/codespell-project/codespell/pull/2850)
- Add spelling correction for siver->silver/sliver/diver by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2858](https://togithub.com/codespell-project/codespell/pull/2858)
- Add assertino->assertion by
[@&#8203;sourcefrog](https://togithub.com/sourcefrog) in
[https://github.com/codespell-project/codespell/pull/2859](https://togithub.com/codespell-project/codespell/pull/2859)
- add notority->notoriety by
[@&#8203;EdwardBetts](https://togithub.com/EdwardBetts) in
[https://github.com/codespell-project/codespell/pull/2861](https://togithub.com/codespell-project/codespell/pull/2861)
- Misspellings from eLabFTW by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2863](https://togithub.com/codespell-project/codespell/pull/2863)
- Add `invirant{,s}->invariant{,s}` by
[@&#8203;ojeda](https://togithub.com/ojeda) in
[https://github.com/codespell-project/codespell/pull/2870](https://togithub.com/codespell-project/codespell/pull/2870)
- Add `alloccat*->allocat*` by
[@&#8203;ojeda](https://togithub.com/ojeda) in
[https://github.com/codespell-project/codespell/pull/2869](https://togithub.com/codespell-project/codespell/pull/2869)
- Add "multiply"/"multiplies" variations to instances of "multiple" by
[@&#8203;jdufresne](https://togithub.com/jdufresne) in
[https://github.com/codespell-project/codespell/pull/2872](https://togithub.com/codespell-project/codespell/pull/2872)
- Add strin->string and optiona->optional by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2817](https://togithub.com/codespell-project/codespell/pull/2817)
- Add wellplate -> well plate by
[@&#8203;claydugo](https://togithub.com/claydugo) in
[https://github.com/codespell-project/codespell/pull/2873](https://togithub.com/codespell-project/codespell/pull/2873)
- Add `afile` Misspelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2876](https://togithub.com/codespell-project/codespell/pull/2876)
- Ignore 'misspellings' due to string escapes by
[@&#8203;Zac-HD](https://togithub.com/Zac-HD) in
[https://github.com/codespell-project/codespell/pull/2875](https://togithub.com/codespell-project/codespell/pull/2875)
- Add `pre-poulate` Misspellings by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2878](https://togithub.com/codespell-project/codespell/pull/2878)

#### New Contributors

- [@&#8203;marksmayo](https://togithub.com/marksmayo) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2784](https://togithub.com/codespell-project/codespell/pull/2784)
- [@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) made their
first contribution in
[https://github.com/codespell-project/codespell/pull/2789](https://togithub.com/codespell-project/codespell/pull/2789)
- [@&#8203;gforcada](https://togithub.com/gforcada) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2793](https://togithub.com/codespell-project/codespell/pull/2793)
- [@&#8203;n-thumann](https://togithub.com/n-thumann) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2785](https://togithub.com/codespell-project/codespell/pull/2785)
- [@&#8203;Moiman](https://togithub.com/Moiman) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2813](https://togithub.com/codespell-project/codespell/pull/2813)
- [@&#8203;sirosen](https://togithub.com/sirosen) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2822](https://togithub.com/codespell-project/codespell/pull/2822)
- [@&#8203;andyholmes](https://togithub.com/andyholmes) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2466](https://togithub.com/codespell-project/codespell/pull/2466)
- [@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) made
their first contribution in
[https://github.com/codespell-project/codespell/pull/2848](https://togithub.com/codespell-project/codespell/pull/2848)
- [@&#8203;sourcefrog](https://togithub.com/sourcefrog) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2859](https://togithub.com/codespell-project/codespell/pull/2859)
- [@&#8203;ojeda](https://togithub.com/ojeda) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2870](https://togithub.com/codespell-project/codespell/pull/2870)
- [@&#8203;claydugo](https://togithub.com/claydugo) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2873](https://togithub.com/codespell-project/codespell/pull/2873)
- [@&#8203;Zac-HD](https://togithub.com/Zac-HD) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2875](https://togithub.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>
renovate bot referenced this pull request in allenporter/flux-local Jun 16, 2023
[![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://togithub.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://togithub.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>codespell-project/codespell</summary>

###
[`v2.2.5`](https://togithub.com/codespell-project/codespell/releases/tag/v2.2.5)

[Compare
Source](https://togithub.com/codespell-project/codespell/compare/v2.2.4...v2.2.5)

#### What's Changed

- Add fixing consciousely typo by
[@&#8203;yarikoptic](https://togithub.com/yarikoptic) in
[https://github.com/codespell-project/codespell/pull/2777](https://togithub.com/codespell-project/codespell/pull/2777)
- atalog typo (saw twice in a project) by
[@&#8203;yarikoptic](https://togithub.com/yarikoptic) in
[https://github.com/codespell-project/codespell/pull/2782](https://togithub.com/codespell-project/codespell/pull/2782)
- created fstrings by
[@&#8203;marksmayo](https://togithub.com/marksmayo) in
[https://github.com/codespell-project/codespell/pull/2784](https://togithub.com/codespell-project/codespell/pull/2784)
- Replace bandit, isort, pylint, pyupgrade, and flake8 plus plugins with
ruff by [@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2779](https://togithub.com/codespell-project/codespell/pull/2779)
- Add Microsoft Mispelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2789](https://togithub.com/codespell-project/codespell/pull/2789)
- Use Latest Version In README Pre-Commit Example by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2788](https://togithub.com/codespell-project/codespell/pull/2788)
- ruff: Use format specifiers instead of percent format by
[@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2787](https://togithub.com/codespell-project/codespell/pull/2787)
- New typos by [@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2793](https://togithub.com/codespell-project/codespell/pull/2793)
- Ruff: Ignore new rule PLC1901 by
[@&#8203;cclauss](https://togithub.com/cclauss) in
[https://github.com/codespell-project/codespell/pull/2797](https://togithub.com/codespell-project/codespell/pull/2797)
- Add various typo fixes by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2795](https://togithub.com/codespell-project/codespell/pull/2795)
- Another suggestion by
[@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2798](https://togithub.com/codespell-project/codespell/pull/2798)
- Fix AssertionError when opening with chardet by
[@&#8203;n-thumann](https://togithub.com/n-thumann) in
[https://github.com/codespell-project/codespell/pull/2785](https://togithub.com/codespell-project/codespell/pull/2785)
- Fix typo (and variants) from xxHash by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2761](https://togithub.com/codespell-project/codespell/pull/2761)
- Add `huld`->`hold` Spelling Mistake by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2792](https://togithub.com/codespell-project/codespell/pull/2792)
- Fix CI issues by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2796](https://togithub.com/codespell-project/codespell/pull/2796)
- CI: fix new ruff error B028 by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2802](https://togithub.com/codespell-project/codespell/pull/2802)
- Skip subdirectories of hidden directories by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2541](https://togithub.com/codespell-project/codespell/pull/2541)
- Add tweek(s)->tweak(s) correction by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2804](https://togithub.com/codespell-project/codespell/pull/2804)
- Add supoort->support by
[@&#8203;thughes](https://togithub.com/thughes) in
[https://github.com/codespell-project/codespell/pull/2806](https://togithub.com/codespell-project/codespell/pull/2806)
- Add Suggestion For `readded` Mispelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2805](https://togithub.com/codespell-project/codespell/pull/2805)
- Add displaing->displaying by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2808](https://togithub.com/codespell-project/codespell/pull/2808)
- Another suggestion for stati by
[@&#8203;gforcada](https://togithub.com/gforcada) in
[https://github.com/codespell-project/codespell/pull/2810](https://togithub.com/codespell-project/codespell/pull/2810)
- Add dimaond -> diamond by
[@&#8203;Moiman](https://togithub.com/Moiman) in
[https://github.com/codespell-project/codespell/pull/2813](https://togithub.com/codespell-project/codespell/pull/2813)
- Add vai->via, vie by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2815](https://togithub.com/codespell-project/codespell/pull/2815)
- Remove invalid correction - Kwanza = currency of Angola by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2803](https://togithub.com/codespell-project/codespell/pull/2803)
- sinoid and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2807](https://togithub.com/codespell-project/codespell/pull/2807)
- Add excludle->exclude by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2814](https://togithub.com/codespell-project/codespell/pull/2814)
- Add gadjet->gadget and friend by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2818](https://togithub.com/codespell-project/codespell/pull/2818)
- Add togueter->together by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2821](https://togithub.com/codespell-project/codespell/pull/2821)
- Add "mutabl->mutable" by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2822](https://togithub.com/codespell-project/codespell/pull/2822)
- Add containin->containing by
[@&#8203;janosh](https://togithub.com/janosh) in
[https://github.com/codespell-project/codespell/pull/2824](https://togithub.com/codespell-project/codespell/pull/2824)
- Add mandess->madness by [@&#8203;luzpaz](https://togithub.com/luzpaz)
in
[https://github.com/codespell-project/codespell/pull/2825](https://togithub.com/codespell-project/codespell/pull/2825)
- some fixes by [@&#8203;marksmayo](https://togithub.com/marksmayo) in
[https://github.com/codespell-project/codespell/pull/2820](https://togithub.com/codespell-project/codespell/pull/2820)
- Fix new ruff errors reported by CI by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2834](https://togithub.com/codespell-project/codespell/pull/2834)
- Add fusipn->fusion by [@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2836](https://togithub.com/codespell-project/codespell/pull/2836)
- Add 'subcription->subscription' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2832](https://togithub.com/codespell-project/codespell/pull/2832)
- Add 'promtp->prompt' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2833](https://togithub.com/codespell-project/codespell/pull/2833)
- Add 'endpdoint' as a misspelling of 'endpoint' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2830](https://togithub.com/codespell-project/codespell/pull/2830)
- Add more misspellings of 'identities' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2829](https://togithub.com/codespell-project/codespell/pull/2829)
- Friends of existing typos by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2837](https://togithub.com/codespell-project/codespell/pull/2837)
- Fix
[`66ec667`](https://togithub.com/codespell-project/codespell/commit/66ec667)
by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2838](https://togithub.com/codespell-project/codespell/pull/2838)
- equivallent and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2827](https://togithub.com/codespell-project/codespell/pull/2827)
- Add delpoys->deploys by [@&#8203;luzpaz](https://togithub.com/luzpaz)
in
[https://github.com/codespell-project/codespell/pull/2842](https://togithub.com/codespell-project/codespell/pull/2842)
- Added variations on 'difference' by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2841](https://togithub.com/codespell-project/codespell/pull/2841)
- Add 'canoncical->canonical' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2831](https://togithub.com/codespell-project/codespell/pull/2831)
- Add additional typos by
[@&#8203;kianmeng](https://togithub.com/kianmeng) in
[https://github.com/codespell-project/codespell/pull/2835](https://togithub.com/codespell-project/codespell/pull/2835)
- Add spelling corrections for inject and variants. by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2846](https://togithub.com/codespell-project/codespell/pull/2846)
- Add 'credentail->credential' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2844](https://togithub.com/codespell-project/codespell/pull/2844)
- Add 'requestor->requester' by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2845](https://togithub.com/codespell-project/codespell/pull/2845)
- Update README.rst by
[@&#8203;andyholmes](https://togithub.com/andyholmes) in
[https://github.com/codespell-project/codespell/pull/2466](https://togithub.com/codespell-project/codespell/pull/2466)
- Add exrension(s)->extension(s) by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2847](https://togithub.com/codespell-project/codespell/pull/2847)
- Add facttory->factory and facttories-> factories by
[@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) in
[https://github.com/codespell-project/codespell/pull/2848](https://togithub.com/codespell-project/codespell/pull/2848)
- Add several spelling corrections by
[@&#8203;luzpaz](https://togithub.com/luzpaz) in
[https://github.com/codespell-project/codespell/pull/2849](https://togithub.com/codespell-project/codespell/pull/2849)
- Add comtaining->containing by
[@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) in
[https://github.com/codespell-project/codespell/pull/2855](https://togithub.com/codespell-project/codespell/pull/2855)
- topoplogical and friends by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2854](https://togithub.com/codespell-project/codespell/pull/2854)
- Add placehoulder->placeholder by
[@&#8203;sirosen](https://togithub.com/sirosen) in
[https://github.com/codespell-project/codespell/pull/2856](https://togithub.com/codespell-project/codespell/pull/2856)
- More typos from GlobalProtect-openconnect by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2850](https://togithub.com/codespell-project/codespell/pull/2850)
- Add spelling correction for siver->silver/sliver/diver by
[@&#8203;cfi-gb](https://togithub.com/cfi-gb) in
[https://github.com/codespell-project/codespell/pull/2858](https://togithub.com/codespell-project/codespell/pull/2858)
- Add assertino->assertion by
[@&#8203;sourcefrog](https://togithub.com/sourcefrog) in
[https://github.com/codespell-project/codespell/pull/2859](https://togithub.com/codespell-project/codespell/pull/2859)
- add notority->notoriety by
[@&#8203;EdwardBetts](https://togithub.com/EdwardBetts) in
[https://github.com/codespell-project/codespell/pull/2861](https://togithub.com/codespell-project/codespell/pull/2861)
- Misspellings from eLabFTW by
[@&#8203;DimitriPapadopoulos](https://togithub.com/DimitriPapadopoulos)
in
[https://github.com/codespell-project/codespell/pull/2863](https://togithub.com/codespell-project/codespell/pull/2863)
- Add `invirant{,s}->invariant{,s}` by
[@&#8203;ojeda](https://togithub.com/ojeda) in
[https://github.com/codespell-project/codespell/pull/2870](https://togithub.com/codespell-project/codespell/pull/2870)
- Add `alloccat*->allocat*` by
[@&#8203;ojeda](https://togithub.com/ojeda) in
[https://github.com/codespell-project/codespell/pull/2869](https://togithub.com/codespell-project/codespell/pull/2869)
- Add "multiply"/"multiplies" variations to instances of "multiple" by
[@&#8203;jdufresne](https://togithub.com/jdufresne) in
[https://github.com/codespell-project/codespell/pull/2872](https://togithub.com/codespell-project/codespell/pull/2872)
- Add strin->string and optiona->optional by
[@&#8203;peternewman](https://togithub.com/peternewman) in
[https://github.com/codespell-project/codespell/pull/2817](https://togithub.com/codespell-project/codespell/pull/2817)
- Add wellplate -> well plate by
[@&#8203;claydugo](https://togithub.com/claydugo) in
[https://github.com/codespell-project/codespell/pull/2873](https://togithub.com/codespell-project/codespell/pull/2873)
- Add `afile` Misspelling by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2876](https://togithub.com/codespell-project/codespell/pull/2876)
- Ignore 'misspellings' due to string escapes by
[@&#8203;Zac-HD](https://togithub.com/Zac-HD) in
[https://github.com/codespell-project/codespell/pull/2875](https://togithub.com/codespell-project/codespell/pull/2875)
- Add `pre-poulate` Misspellings by
[@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) in
[https://github.com/codespell-project/codespell/pull/2878](https://togithub.com/codespell-project/codespell/pull/2878)

#### New Contributors

- [@&#8203;marksmayo](https://togithub.com/marksmayo) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2784](https://togithub.com/codespell-project/codespell/pull/2784)
- [@&#8203;Casey-Kiewit](https://togithub.com/Casey-Kiewit) made their
first contribution in
[https://github.com/codespell-project/codespell/pull/2789](https://togithub.com/codespell-project/codespell/pull/2789)
- [@&#8203;gforcada](https://togithub.com/gforcada) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2793](https://togithub.com/codespell-project/codespell/pull/2793)
- [@&#8203;n-thumann](https://togithub.com/n-thumann) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2785](https://togithub.com/codespell-project/codespell/pull/2785)
- [@&#8203;Moiman](https://togithub.com/Moiman) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2813](https://togithub.com/codespell-project/codespell/pull/2813)
- [@&#8203;sirosen](https://togithub.com/sirosen) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2822](https://togithub.com/codespell-project/codespell/pull/2822)
- [@&#8203;andyholmes](https://togithub.com/andyholmes) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2466](https://togithub.com/codespell-project/codespell/pull/2466)
- [@&#8203;nils-van-zuijlen](https://togithub.com/nils-van-zuijlen) made
their first contribution in
[https://github.com/codespell-project/codespell/pull/2848](https://togithub.com/codespell-project/codespell/pull/2848)
- [@&#8203;sourcefrog](https://togithub.com/sourcefrog) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2859](https://togithub.com/codespell-project/codespell/pull/2859)
- [@&#8203;ojeda](https://togithub.com/ojeda) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2870](https://togithub.com/codespell-project/codespell/pull/2870)
- [@&#8203;claydugo](https://togithub.com/claydugo) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2873](https://togithub.com/codespell-project/codespell/pull/2873)
- [@&#8203;Zac-HD](https://togithub.com/Zac-HD) made their first
contribution in
[https://github.com/codespell-project/codespell/pull/2875](https://togithub.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Escaped characters in strings not ignored in 2.0 version codespell ignores C/C++ tabs ('\t') in strings
4 participants