Skip to main content

Flake8 wrapper to make it nice and configurable

Reason this release was yanked:

fork reboot

Project description

THE PROJECT IS ALIVE!!!

It's a fork of https://github.com/life4/flakehell

Fork chores (contributions welcome!)

Progress


FlakeHell

PyPI version Build Status License: MIT Documentation

It's a Flake8 wrapper to make it cool.

output example

Compatibility

FlakeHell supports all flake8 plugins, formatters, and configs. However, FlakeHell has it's own beautiful way to configure enabled plugins and codes. So, options like --ignore and --select unsupported. You can have flake8 and FlakeHell in one project if you want but enabled plugins should be explicitly specified.

Installation

pip install git+https://github.com/pwooolvett/flakehell.git@master

Usage

First of all, let's create pyproject.toml config:

[tool.flakehell]
# optionally inherit from remote config (or local if you want)
base = "https://raw.githubusercontent.com/life4/flakehell/master/pyproject.toml"
# specify any flake8 options. For example, exclude "example.py":
exclude = ["example.py"]
# make output nice
format = "grouped"
# 80 chars aren't enough in 21 century
max_line_length = 90
# show line of source code in output
show_source = true

# list of plugins and rules for them
[tool.flakehell.plugins]
# include everything in pyflakes except F401
pyflakes = ["+*", "-F401"]
# enable only codes from S100 to S199
flake8-bandit = ["-*", "+S1??"]
# enable everything that starts from `flake8-`
"flake8-*" = ["+*"]
# explicitly disable plugin
flake8-docstrings = ["-*"]

Show plugins that aren't installed yet:

flakehell missed

Show installed plugins, used plugins, specified rules, codes prefixes:

flakehell plugins

plugins command output

Show codes and messages for a specific plugin:

flakehell codes pyflakes

codes command output

Run flake8 against the code:

flakehell lint

This command accepts all the same arguments as Flake8.

Read flakehell.readthedocs.io for more information.

Contributing

Contributions are welcome! A few ideas what you can contribute:

  • Improve documentation.
  • Add more tests.
  • Improve performance.
  • Found a bug? Fix it (or report it in the issues)!
  • Made an article about FlakeHell? Great! Let's add it into the README.md.
  • Don't have time to code? No worries! Just tell your friends and subscribers about the project. More users -> more contributors -> more cool features.

A convenient way to run tests is using DepHell:

curl -L dephell.org/install | python3
dephell venv create --env=pytest
dephell deps install --env=pytest
dephell venv run --env=pytest

Bug-tracker has been enabled by-design to invite contributors and users. Please, help us make the project better and don't stalk maintainers in social networks and on the street.

Thank you :heart:

The FlakeHell mascot (Flaky) is created by @illustrator.way and licensed under the CC BY-SA 4.0 license.

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

flakeheaven-0.10.0a0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

flakeheaven-0.10.0a0-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file flakeheaven-0.10.0a0.tar.gz.

File metadata

  • Download URL: flakeheaven-0.10.0a0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for flakeheaven-0.10.0a0.tar.gz
Algorithm Hash digest
SHA256 3931422e8aeafa69d29d1b1158fb1795d801c830b8bcedb79312b3db962f9c9c
MD5 ecd7527c4ed7dbc3d6ccfbac843edc37
BLAKE2b-256 7cf4a6568bc7416b624f82fc924acc49925d97f1b39b0974d52da399e436c915

See more details on using hashes here.

File details

Details for the file flakeheaven-0.10.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for flakeheaven-0.10.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 80d453a38dffcaca6a14cd081fce2501a08be30b7bc8427850219a6aae64698b
MD5 84600ad830e22326afcc745d98fb9576
BLAKE2b-256 289b3d1ca2afcd4b1ae01981e55e9cc73b1c7254d49a2b56b401aced906f9c1d

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