122 Commits

Author SHA1 Message Date
cb56cb6b5f STY: Flake 2022-10-05 13:26:59 -04:00
4792904cb7 ENH: CWD 2022-10-05 12:16:29 -04:00
wzy
2a0ee4b4b9 Fix #2055: Add support for PEP 518 (#2290)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
2022-10-05 10:36:19 -04:00
3a1715444c Merge pull request #2223 from DimitriPapadopoulos/capitalized_fixes
Capitalize all suggested fixes
2022-09-01 04:56:16 +01:00
14af437206 MAINT: Bump to dev (#2463) 2022-08-18 13:57:11 +00:00
c6ecb9fc51 MAINT: 2.2.1 (#2462) 2022-08-18 09:52:51 -04:00
MDW
5d50d032a7 'which' -> 'that' because the clause is essential to the meaning of the sentences. 2022-08-18 00:54:23 +02:00
10943b0345 MAINT: Bump to next dev (#2455) 2022-08-17 20:23:29 +00:00
291a649406 MAINT: Stable version (#2454) 2022-08-17 20:15:51 +00:00
e1f36d7769 Try and improve the code dictionary explanation 2022-07-09 13:52:32 +01:00
e8befc136d Simplify code
The list comprehension is shorter than the map() version.
I feel it is also simpler, although that is debatable.

This is consistent with the previous commit.
2022-01-07 18:26:23 +01:00
fd75e950ea Capitalize all suggested fixes
When a wrong word is capitalized, capitalize all the suggested fixes,
instead of only the first fix.
2022-01-04 21:43:50 +01:00
c807a6cdd1 Add note about --exclude-file in README and update help text 2022-01-03 08:18:03 -08:00
01f5c77d84 print("ERROR: ...") should print to sys.stderr 2021-11-16 11:31:30 +01:00
fabf9eb2b9 Better phrasing
Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
2021-11-13 17:30:32 +01:00
73f81fa28b better explain what code disctionary contains
https://github.com/codespell-project/codespell/pull/2144#issuecomment-966919948
2021-11-12 15:08:48 +01:00
aaee230f1f __future__ not needed by Python >= 3.6 2021-09-30 10:47:09 +02:00
50c83267b1 Merge pull request #2066 from DimitriPapadopoulos/chmod-x
chmod -x
2021-09-23 14:45:44 +01:00
77c84dba5d Improve the definition of the "rare" builtin dictionary
For an end user who is not familiar with the inner details of the
script, the meaning of the old definition was ambiguous. It wasn't
clear whether using this dictionary flags the rare words as errors
(false positives) or on the contrary does not flag these rare words
(false negatives).

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
2021-09-22 16:55:23 +02:00
040da02822 chmod -x
This file does not start with #! anymore, therefore it should not
be identified as executable by Git.
2021-09-16 12:26:13 +02:00
d598d5b286 MAINT: Bump version (#1944) 2021-06-10 15:22:06 -04:00
01da43d753 MAINT: Bump version (#1943) 2021-06-10 15:12:32 -04:00
0338e3cc0e Merge pull request #1656 from jonmeow/ignore-uris
Add support for ignoring spelling mistakes in URIs specifically.
2021-06-02 00:17:26 +01:00
6019d3db25 flake8 2021-06-01 11:15:12 -07:00
4f7d81bfef Merge branch 'ignore-uris' of https://github.com/jonmeow/codespell into ignore-uris 2021-06-01 11:11:43 -07:00
4961cc174c regex 2021-06-01 11:11:33 -07:00
f7e3e73df4 Update codespell_lib/_codespell.py
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
2021-06-01 10:17:44 -07:00
19c223f2c7 skip files passed in if matching the skip glob 2021-05-04 15:43:58 -07:00
079b649d9b Try and improve dictionary descriptions (#1793)
* Try and improve dictionary descriptions

* Fix the line length warning
2020-12-04 12:36:33 -05:00
fdea970ae1 MAINT: Bump version (#1772) 2020-11-23 10:48:19 -05:00
67c489d36d MAINT: Bump version (#1771) 2020-11-23 10:42:41 -05:00
a5402ec769 Merge remote-tracking branch 'upstream/master' into ignore-uris 2020-11-06 11:55:12 -08:00
b5b82e8de4 Restructure * handling 2020-11-06 11:54:46 -08:00
d7852d8815 Test: Remove more flake-stuff 2020-10-27 19:24:55 +01:00
266f45095d Test: Add suggestion of @peternewman 2020-10-27 14:35:01 +01:00
481b6080d3 Test: Reintroduce language parameter 2020-10-03 10:22:46 +02:00
60b905dba0 Test: Change en_GB to en_GB-ise 2020-09-24 12:05:51 +02:00
eedad8a445 Test: Add CA and AU again 2020-09-24 11:54:55 +02:00
86e61e0b00 Test: delete enAU and enCA 2020-09-24 11:54:53 +02:00
a2296085bc Tests: Allow in_aspell to be list of dictionaries 2020-09-24 11:54:53 +02:00
f315b0dec6 Tests and option 2020-09-08 10:42:39 -07:00
9672234591 Read options from config (#1668)
* Read options from config

* Fix assert in test

* Fix tests

* Fix readme to pass rst checks in Travis

* Also support .codespellrc config file

* Fix flake8 error

* CLI args override config args

* Rename tool:codespell to just codespell in config

* Fix typo in readme

* Remove unnecessary check for existance of config files (configparser already handles this case)
2020-09-01 15:10:19 -04:00
b8db3f0883 Fix flake8 2020-08-28 14:29:59 -07:00
1e7f5f7e6f Add support for ignoring spelling mistakes in URIs specifically. 2020-08-28 14:23:10 -07:00
5ae1b91fae More tests 2020-08-10 15:21:56 -07:00
da4ae3e54c Addressing comments 2020-07-27 11:26:15 -07:00
9d6f0051b2 Switch to ignore-regex as a simple flag 2020-07-24 12:41:17 -07:00
018f0c6465 Add --ignore-regex for URI/email handling.
This is for issue #676, where typos are found in actually-okay URIs/emails. Because these are closer to names in context, this ignores them.

Mechanically, this erases the URI/email text before the word regex is applied.
2020-07-08 09:19:27 -07:00
00f8ffd23d BUG: Use return codes properly, add --count (#1558)
* BUG: Use return codes properly, add --count

* FIX: EX_USAGE (kind of)

* FIX: EX_USAGE (really)

* FIX: Dont bother importing

* FIX: More

* STY: Caps

* MAINT: Version bump
2020-06-16 12:03:47 -04:00
2657d752e6 ENH: Multiline help (#1559)
* ENH: Multiline help

* STY: Use %(default)r

* DOC: Document rationale
2020-06-12 19:24:39 -04:00