All Projects → MichaelAquilina → flake8-spellcheck

MichaelAquilina / flake8-spellcheck

Licence: MIT license
❄️ Spellcheck variables, classnames, comments, docstrings etc

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to flake8-spellcheck

Misspell Fixer
Simple tool for fixing common misspellings, typos in source code
Stars: ✭ 154 (+116.9%)
Mutual labels:  spellcheck, linter
yamburger
YAML syntax got you down? That's a YAMBURGER!
Stars: ✭ 32 (-54.93%)
Mutual labels:  linter
Nspell
📝 Hunspell compatible spell-checker
Stars: ✭ 195 (+174.65%)
Mutual labels:  spellcheck
elm-lint
elm-lint lints Elm source code, to add additional guarantees to your project.
Stars: ✭ 27 (-61.97%)
Mutual labels:  linter
Nodehun
The Hunspell binding for NodeJS that exposes as much of Hunspell as possible and also adds new features. Hunspell is a first class spellcheck library used by Google, Apple, and Mozilla.
Stars: ✭ 229 (+222.54%)
Mutual labels:  spellcheck
vue-cli-template-library
Template for developing open-source vue.js libraries with Rollup + Jest + Babel + Storybook + TravisCI + SemanticRelease
Stars: ✭ 61 (-14.08%)
Mutual labels:  linter
Spylls
Pure Python spell-checker, (almost) full port of Hunspell
Stars: ✭ 185 (+160.56%)
Mutual labels:  spellcheck
nimfmt
Nim code formatter / linter / style checker
Stars: ✭ 75 (+5.63%)
Mutual labels:  linter
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (-33.8%)
Mutual labels:  linter
flake8-putty
Flake8 plugin to control reporting per file and line
Stars: ✭ 38 (-46.48%)
Mutual labels:  linter
node-lintspaces
A validator for checking different kinds of whitespaces in your files.
Stars: ✭ 31 (-56.34%)
Mutual labels:  linter
typo3-typoscript-lint
Find coding errors in your TypoScript files.
Stars: ✭ 78 (+9.86%)
Mutual labels:  linter
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+454.93%)
Mutual labels:  linter
Php Spellchecker
🐘🎓📝 PHP Library providing an easy way to spellcheck multiple sources of text by many spellcheckers
Stars: ✭ 213 (+200%)
Mutual labels:  spellcheck
nano-staged
Tiny tool to run commands for modified, staged, and committed files in a GIT repository.
Stars: ✭ 347 (+388.73%)
Mutual labels:  linter
Hunspell Dict Ko
Korean spellchecking dictionary for Hunspell
Stars: ✭ 187 (+163.38%)
Mutual labels:  spellcheck
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (+436.62%)
Mutual labels:  linter
f2e-spec
Alibaba Front-end Coding Guidelines and Relevant Tools
Stars: ✭ 548 (+671.83%)
Mutual labels:  linter
linter-terraform-syntax
terraform validate linter and formatter for atom
Stars: ✭ 19 (-73.24%)
Mutual labels:  linter
prlint
GitHub App for linting pull request meta data
Stars: ✭ 122 (+71.83%)
Mutual labels:  linter

Flake8 Spellcheck

CircleCI Black PyPi

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.8+

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

Enable pandas support

You can enable support for pandas DataFrames by adding the following to your flake8 configuration (e.g. your .flake8 file):

[flake8]
dictionaries = en_US,python,technical,pandas

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

Ignore Rules

[flake8]
ignore = SC100, SC200

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:

Before you submit a PR, it is recommended to run check-sorting.sh in the root of this repository, to verify that all the dictionary files are still sorted correctly. Sorting is enforced by CI, so you'll need to make sure the files are sorted before your PR can be merged.

Development

  • Install poetry
  • Run poetry install
  • Run poetry run pre-commit install --install-hooks

You can run tests with poetry run pytest.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].