-
-
Notifications
You must be signed in to change notification settings - Fork 391
/
Copy pathsetup.cfg
88 lines (70 loc) · 2.19 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
[bdist_wheel]
universal = 1
[coverage:run]
branch = True
[flake8]
accept-encodings = utf-8
max-complexity = 6
statistics = False
max-line-length = 80
doctests = True
enable-extensions = G
isort-show-traceback = True
exclude = tests/fixtures
per-file-ignores =
# These function names are part of 3d party API:
wemake_python_styleguide/visitors/ast/**/*.py: N802
# These modules should contain a lot of classes:
wemake_python_styleguide/violations/*.py: Z202
# This module should contain magic numbers:
wemake_python_styleguide/options/defaults.py: Z432
# Disable some pydocstyle checks for package:
wemake_python_styleguide/**/*.py: D104
# There are multiple fixtures, `assert`s, and subprocesses in tests:
tests/**/test_*.py: Z211, S101, S404, S603, S607
tests/test_visitors/conftest.py: S101
# Disable some pydocstyle checks globally:
**/*.py: D100, D401, X100
[tool:pytest]
# py.test options:
norecursedirs = tests/fixtures *.egg .eggs dist build docs .tox .git __pycache__
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::FutureWarning
# You will need to measure your tests speed with `-n auto` and without it,
# so you can see whether it gives you any performance gain, or just gives
# you an overhead. See `docs/template/development-process.rst`.
addopts =
--doctest-modules
--cov=wemake_python_styleguide
--cov-report=term:skip-covered
--cov-report=html
--cov-fail-under=100
[isort]
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
include_trailing_comma = true
default_section = FIRSTPARTY
# Should be: 80 - 1
line_length = 79
[mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
python_version = 3.6
check_untyped_defs = True
disallow_any_explicit = True
disallow_any_generics = True
disallow_untyped_calls = True
ignore_errors = False
ignore_missing_imports = True
strict_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
[doc8]
ignore-path = docs/_build
max-line-length = 80
sphinx = True