Spellcheck variables, comments and docstrings
Project description
Flake8 Plugin that spellchecks variables, functions, classes and other bits of your python code.
You can whitelist words that are specific to your project simply by adding them to whitelist.txt in the root of your project directory. Each word you add should be separated by a newline.
Spelling is assumed to be in en_US.
This plugin supports python 3.5+
Codes
SC100 - Spelling error in comments
SC200 - Spelling error in name (e.g. variable, function, class)
Enable Django support
You can enable support for a Django dictionary by adding the following to your flake8 configuration (e.g. your .flake8 file):
[flake8]
dictionaries=en_US,python,technical,django
Specify Targets
Both comments and names (variable names, function names…) are spellchecked by default. You can specify what targets to spellcheck in your flake8 configuration (e.g. in your .flake8 file):
[flake8]
spellcheck-targets=comments
The above configuration would only spellcheck comments
[flake8]
spellcheck-targets=names
The above configuration would only spellcheck names
Contributing
If you have found word(s) which are listed as a spelling error but are actually correct terms used in python or in technical implementations (e.g. http), then you can very easily contribute by adding those word(s) to the appropriate dictionaries:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8-spellcheck-0.19.1.tar.gz
.
File metadata
- Download URL: flake8-spellcheck-0.19.1.tar.gz
- Upload date:
- Size: 333.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b986e8c0f30b397d66557da2a41875ac7f9c8f2f7336ee997f72dc660d519895 |
|
MD5 | fe98631cba7d53676a1460d4104f4289 |
|
BLAKE2b-256 | d649109207c7ef59a109d4ea3ad4327fb689638b9cb41fdf50b32963ce7727fa |
File details
Details for the file flake8_spellcheck-0.19.1-py2.py3-none-any.whl
.
File metadata
- Download URL: flake8_spellcheck-0.19.1-py2.py3-none-any.whl
- Upload date:
- Size: 331.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8cf57d570b1b3518d8a58ebfa56e47fc84a2560a4ec1f3cd1fbd6c3d891d2c |
|
MD5 | d77023a18b92f6361408b81c1cccda0e |
|
BLAKE2b-256 | 78b8517ebbbacf7e37f42eef48a3d392c28dab8b7f278e4ed2d425c99313f79e |