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.0.tar.gz (7.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: flake8-koles-0.2.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for flake8-koles-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2140611bd70eba3677b38b7dbabec3e2b1602513e179bb0d3f6326c3cb3bc11e
MD5 9e93aa55be944401cb09dab41235c575
BLAKE2b-256 77b2ee7b0af30fb9e77211a36417e720a2e7e09bbae2660bdbaf7011088101d5

See more details on using hashes here.

Supported by

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