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
File details
Details for the file wemake-python-styleguide-0.0.4.tar.gz
.
File metadata
- Download URL: wemake-python-styleguide-0.0.4.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75655530a27583f3c7a1343d28ea0ff0d2e21b2f2f3baf4f4a39cc4c1622693e |
|
MD5 | cb052465bfd1ed0d819aca7d53b4beb8 |
|
BLAKE2b-256 | 430d6e78aa6c1aa56ebeb2cd1b1be45d09b70aa890b1ae2aad39f3bb76d265a1 |
File details
Details for the file wemake_python_styleguide-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: wemake_python_styleguide-0.0.4-py3-none-any.whl
- Upload date:
- Size: 44.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21d54ddcfd98533b7b221c641b0b8f6e27d8f612bade3e697295b7eedc50768 |
|
MD5 | 4549843c4c6071981ff4f9701bf74c0a |
|
BLAKE2b-256 | 3ae316e2670ac59f68b59adb5708bc079373592875f9ad018d07aeaed2089b6e |