164 Commits

Author SHA1 Message Date
fb2ba03199 Avoid deprecated license specification format (#3723) 2025-06-23 11:44:41 -04:00
654b3ed08c Run ruff format 2025-01-14 07:18:52 +01:00
913871e824 Apply ruff/flake8-pytest-style rule PT006
PT006 Wrong type passed to first argument of `pytest.mark.parametrize`; expected `tuple`
2025-01-14 07:18:52 +01:00
7ba821bc58 If writeable is OK, so is overwriteable (#3593) 2024-12-02 12:35:09 -05:00
6ed5df16e9 Update ruff settings (#3558) 2024-10-02 12:57:35 -04:00
93cd13e73c Enforce --write-changes in interactive mode
Co-authored-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2024-07-26 20:30:31 +02:00
f3d85db4f1 Add --ignore-multiline-regex option. (#3476) 2024-07-08 16:04:09 -04:00
ac5c505644 [pre-commit.ci] pre-commit manual update (ruff 0.5.0) (#3481) 2024-07-02 09:22:42 -04:00
c4f575c11e typo 2024-07-02 08:51:13 +02:00
b6de749420 Only accept documented choices after -i and -q (#3344) 2024-06-20 17:29:10 -04:00
1b6f7eb92e Additional en-GB → en-US entries (#3058) 2024-06-02 16:37:45 -04:00
2569d89f4b Options that expect a file, should accept lists of files too (#2767) 2024-04-15 15:27:21 -04:00
38143a2a6f Add tests to exhibit the issue with multiline options 2024-04-10 16:12:26 +02:00
8fa1baab01 Implement inline ignores (#2400)
Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
2024-03-10 19:34:55 +01:00
4587d788a7 Fix ruff alerts (currently) not caught by pre-commit (#3162) 2024-01-19 15:33:59 -05:00
81e47b5c31 Enable lists in TOML config file (#3294) 2024-01-19 18:13:42 +00:00
87edf05955 Case ignore (#3272) 2024-01-09 09:43:10 -05:00
0dd109a3e8 fix: typos in comments
Ironically, the word "mispelled" is misspelled in some doc comments. I
_think_ this is not intentional?
2024-01-03 21:14:17 +01:00
9a5fb4bdad test: remove warning when aspell is not installed
pytest already prints a skip message, so the warning is not necessary
and instead may cause confusion.
2023-12-23 13:52:11 +01:00
cfd21096ff Apply a selection of refurb rules (#3244) 2023-12-11 15:01:44 -05:00
86b30db41a Ignore line endings in exclude-file (#1889)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
2023-11-23 09:16:24 +01:00
f73f0cc105 Add --stdin-single-line option (#3224)
Co-authored-by: Jedrzej Orbik <jedrzej.orbik@roboception.de>
2023-11-20 12:56:33 -05:00
f2deec14a6 Ignore ill-formed INI files instead of crashing (#3213) 2023-11-13 12:47:22 -05:00
41e78bfeaa Fix ruff alerts (currently) not caught by pre-commit (#3158) 2023-10-17 17:19:02 -04:00
dfb03fd268 Get rid of typos with apostrophe replaced by semicolon (#3022) 2023-09-12 17:33:15 -04:00
55365585f3 Modify structure of dict read from TOML to match dict read from INI (#3046) 2023-08-31 09:04:00 -04:00
12d677b875 [pre-commit.ci] fix new ruff issue (#3042) 2023-08-25 09:03:50 -04:00
b29233a807 Generate alternative typos with a translation table (#2985) 2023-08-08 09:24:37 -04:00
44f22e2436 Remove the grave accent (`) from the default word regex (#2983) 2023-08-07 09:45:56 -04:00
9c580dff5f Use pre-commit to sort the dictionaries (#2973) 2023-07-31 20:13:39 -04:00
ec0a5b9e4d Fix the name of the extra word lists we load (#2976) 2023-07-28 10:12:06 +02:00
dc5a20f982 Use large aspell dictionaries (#2947) 2023-07-17 12:56:22 -04:00
e13ce238e2 Add journalling->journaling to GB->EN dict 2023-07-16 21:18:22 +02:00
168fd92101 Allow words unknown to aspell
Allowed words are listed in files named using the following scheme:
	codespell_lib/tests/data/en-additionnal.wordlist
	codespell_lib/tests/data/en_GB-additionnal.wordlist
	codespell_lib/tests/data/en_US-additionnal.wordlist

Prefixes "en", "en_GB" or "en_US" match one of the supported languages.

We cannot add words with dashes such as "low-colour" or "high-colour"
to these lists, aspell doesn't allow that.

Since most if not all these words do exist in aspell dictionnaries,
I believe we are merely working around an aspell bug.
2023-07-15 16:24:39 +02:00
c5bc4d7b5e Test to check our string escape word triggers on its own (#2879) 2023-06-15 10:45:22 -04:00
463ac02940 Ignore 'misspellings' due to string escapes (#2875) 2023-06-14 12:43:16 -04:00
c55b9acf8d Fix 66ec667 (#2838) 2023-04-26 14:08:48 -04:00
ca016c1d2c Fix new ruff errors reported by CI (#2834) 2023-04-24 15:01:12 -04:00
9e383bcf04 MAINT: Cleanup conditionals (#2820) 2023-04-18 17:11:17 +00:00
cc93cc2624 Skip subdirectories of hidden directories (#2541) 2023-03-20 13:43:13 -04:00
d2c5b489dc CI: fix new ruff error B028 (#2802) 2023-03-18 11:25:59 -04:00
a239c801c7 Fix CI issues (#2796) 2023-03-15 14:41:04 +00:00
b15260750f Add test for unknown encoding using chardet 2023-03-15 09:34:02 +01:00
64459cc488 ruff: Use format specifiers instead of percent format (#2787) 2023-03-12 12:31:08 -04:00
6b21bb4d14 black formatting after f-string 2023-03-10 13:50:27 +01:00
207947bea2 created fstrings
updated format strings to f-strings
2023-03-10 13:50:27 +01:00
8fa416764c Switch from pytest tmpdir to tmp_path in tests (#2625) 2023-03-08 17:58:44 +00:00
f3561a3c91 pre-commit: Upgrade psf/black for stable style 2023 2023-02-01 16:40:29 +01:00
65b2f88ae4 Simplify evaluation 2023-01-26 20:59:47 +01:00
7b107a70cb Adjust test for python3.11 2023-01-26 20:59:47 +01:00