Opinionated styleguide that we use in wemake.services
Project description
wemake-python-styleguide
Welcome to the most opinionated linter ever.
Installation
pip install wemake-python-styleguide
Project status
We are in early alpha. Use it on your own risk.
Running tests
Clone the repository, install poetry
, then do from within the project folder:
# Installing dependencies (only required to be run once):
poetry install
poetry develop
# Running tests:
poetry run pytest
poetry run mypy wemake_python_styleguide
poetry run doc8 -q docs
It's OK if some tests are skipped.
Configuration
You can adjust configuration via CLI option:
flake8 --max-returns 7
or configuration option in tox.ini
/setup.cfg
.
max-returns = 7
There are the following options:
-
max-returns
- maximum allowed number ofreturn
statements in one function. Default value is 6. -
max-local-variables
- maximum allowed number of local variables in one function. Default is 10. -
max-expressions
- maximum allowed number of expressions in one function. Default value is 10. -
max-arguments
- maximum allowed number of arguments in one function. Default value is 5.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wemake-python-styleguide-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 453e831f94dc6e1de85bf784b25308ec63a6838e9fa5a64e54d1163dc29d27d3 |
|
MD5 | 4b98bf55061e0a7c7ac6dc7dcca85115 |
|
BLAKE2b-256 | 9c565890a434efff7e074b9c5dc30d1b735d1f22c359520abde1fe86ab477632 |
Hashes for wemake_python_styleguide-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccc61ed0eaa4a6967c8c58fe7b44e7ffcc781ea87e761e57bf5eeca3efc1e640 |
|
MD5 | f16f5e2f87273cce759225a105f9f8c6 |
|
BLAKE2b-256 | ffedd56eae30135d3b002caff50bdfc079468b1e4dc34846562e298777a3f1d3 |