Skip to main content

Watch your language young lad! Swears and curses linter.

Project description

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

Project details


Download files

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

Source Distribution

flake8-koles-0.2.2.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file flake8-koles-0.2.2.tar.gz.

File metadata

  • Download URL: flake8-koles-0.2.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for flake8-koles-0.2.2.tar.gz
Algorithm Hash digest
SHA256 21c8f3f01ff55d51860d99d0a742b07bb57b67e8eb60e013f988f9eb052e70e0
MD5 dc491e02c3458453d89ab9a687fcf58b
BLAKE2b-256 3ba017bc427386913136354782d9f7eb1772a514084140ec3906273eebf699f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page