Skip to content

wemake-services/wemake-python-styleguide

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91eced8 · Jul 19, 2018

History

37 Commits
Jul 1, 2018
Jul 19, 2018
Jul 19, 2018
Mar 20, 2018
Jul 10, 2018
Jul 1, 2018
Jul 19, 2018
Mar 9, 2018
Jul 11, 2018
Jul 19, 2018
Jul 19, 2018
Jul 13, 2018

Repository files navigation

wemake-python-styleguide

wemake.services Build Status Coverage PyPI version Documentation Status

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 of return 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.