Skip to main content

Watch your language young lad! Swears and curses linter.

Project description


Build Status Coverage Status PyPI - Python Version image GitHub

Watch your language young pal!

Flake8 extension for checking bad language occurrences. Lists all swears found in the code and their location. For now only english and polish languages are supported.


flake8>=3.3.0 is required for the installation.

pip install flake8-koles


flake8 --ignore-shorties 4 --censor-msg --lang=english,polish --ignore-swears=very,bad,words
--censor-msg False replace swears not leading letters with * in error messages
--ignore-shorties 0 ignore swears shorter or equal to the argument
--ignore-swears explicitly pass swears to ignore
--lang english use swears from the selected languages

Above options may be specified in setup.cfg file as well.

Development notes

Makefile commands
make coverage_html generate and open html coverage report in the default browser
make flake8 run flake8
make mypy run mypy
make lint run all linters
make safety run safety check
make unittests run unittests with coverage report
make yamllint run yamllint

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-koles, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size flake8-koles-0.2.2.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page