Skip to main content

flake8-koles

Build Status Coverage Status PyPI - Python Version image Requires.io 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.

Installation

flake8>=3.3.0 is required for the installation.

pip install flake8-koles

Usage

flake8 --ignore-shorties 4 --censor-msg --lang=english,polish --ignore-swears=very,bad,words
Options
OPTION DEFAULT DESCRIPTION
--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
COMMAND DESCRIPTION
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

Release files for flake8-koles 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-koles 0.2.2
File Size Uploaded
flake8-koles-0.2.2.tar.gz 10.9 kB Details

Release files / flake8-koles-0.2.2.tar.gz

Download URL flake8-koles-0.2.2.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
21c8f3f01ff55d51860d99d0a742b07bb57b67e8eb60e013f988f9eb052e70e0
BLAKE2b-256 checksum
How to use checksums
3ba017bc427386913136354782d9f7eb1772a514084140ec3906273eebf699f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page