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

Uploaded Source

File details

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

File metadata

  • Download URL: flake8-koles-0.2.1.tar.gz
  • Upload date:
  • Size: 10.8 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.1.tar.gz
Algorithm Hash digest
SHA256 89496b59a7a7440a40ab60c00d7f41a637961b299b0d384d487ef3b42bf40f50
MD5 0b8deb891cf429ed8543b85db22f6afa
BLAKE2b-256 75ee8801986a6326d8cb6631bac562ec7285870e902e88745a4fd626a2a0abc3

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