-
-
Notifications
You must be signed in to change notification settings - Fork 390
/
setup.cfg
48 lines (40 loc) · 1.48 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# All configuration for plugins
# and other utils is defined here and in `pyproject.toml`
# === Linter configuration ===
# You can reuse this configuration in your own projects.
# NOTE: You can use https://pypi.org/project/Flake8-pyproject/
# to move all your `flake8` configuration to `pyproject.toml`
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = true
statistics = false
doctests = true
# Self settings:
max-imports = 17
# Excluding some directories:
extend-exclude =
.venv
# These folders contain code badly written for reasons:
# Project specific, do not copy.
tests/fixtures/**
tests/**/__snapshots__/**
# We only run `wemake-python-styleguide` with `flake8`:
select = WPS, E999
per-file-ignores =
# These modules should contain a lot of classes and strings:
wemake_python_styleguide/violations/*.py: WPS202, WPS226
# This module should contain magic numbers:
wemake_python_styleguide/options/defaults.py: WPS432
# Checker has a lot of imports:
wemake_python_styleguide/checker.py: WPS201
# Allows mypy type hinting, `Ellipsis`` usage, multiple methods:
wemake_python_styleguide/types.py: WPS214, WPS220
# There are multiple fixtures, `assert`s, and subprocesses in tests:
tests/test_visitors/test_ast/test_naming/conftest.py: WPS202
tests/*.py: WPS202, WPS211, WPS226
# Docs can have the configuration they need:
docs/conf.py: WPS407
# Pytest fixtures
tests/plugins/*.py: WPS442