113 Commits

Author SHA1 Message Date
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
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
a24debaf46 Disable 'BINARY file' warning by default (#1441)
* Disable 'BINARY file' warning by default

Currently codespell prints a warning if it finds binary files in the tree.
This is annoying as many projects contain .git/.svn blobs, images, etc.
Disable the warning by default and let users enable it if needed.

Co-authored-by: Waldir Pimenta <waldyrious@gmail.com>

* Improve help message for the --quiet-level option

* Update _codespell.py

Co-authored-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
2020-06-11 16:42:49 -04:00
5ed84fce8c Add renaming advice based on IETF draft-knodel-terminology-00 (#1556)
* Add renaming advice based on IETF draft-knodel-terminology-00

Add a new "usage" dictionary with usage advice based on:
https://tools.ietf.org/id/draft-knodel-terminology-00.html#rfc.section.1.1.1

Offer to replace master/slave with:
- Primary-secondary
- Leader-follower
- Active-standby
- Primary-replica
- Writer-reader
- Coordinator-worker
- Parent-helper

* Move recommended terms to "usage" dictionary

Backout the changes from commit 98ab0fa and move them into the
"usage" dictionary.

* Fix use of "whitelist" in README

Use the recommended replacement "allowlist"

* Update codespell_lib/_codespell.py

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
2020-06-11 11:53:57 -04:00
f24af24a01 FIX: Misspelled dir 2020-06-10 10:54:05 -04:00
f566b4fe2e FIX: --check-hidden respects directories 2020-06-10 10:11:40 -04:00
73dd9755c4 Update _codespell.py 2020-06-06 02:02:29 +01:00
f107ddb54b Fix the filename typo detection edge cases. Closes #1532 and some other bugs (#1539)
* Add a test for checking the filename of an empty file

To test #1532

* Test an irregular file with a typo

* Fix the filename typo detection edge cases

* Split the irregular file test into a seperate test

Probably easier to skip and certainly makes the maths easier

* Skip the test if mkfifo is missing

* Add the missing import

* Fix the test skip logic

* Write in the right language!

* Test filename checking on a binary file
2020-06-03 12:54:31 -04:00
c2fe4165b1 Correctly ignore hidden files in directories. Closes #1531 (#1533)
* Add some tests for #1531

* Ignore hidden files in directories, fixes #1531
2020-06-01 10:38:06 -04:00
3ed982c4b1 Fix the random whitespace after the binary file error (#1525)
Also be more consistent about single or double quoting strings and make the error messages more consistent to help with the problem matcher
2020-05-26 10:08:28 -04:00
dfb8f10816 MAINT: Bump to 1.18.dev0 2020-05-22 09:32:14 -04:00