-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.cfg
83 lines (67 loc) · 1.76 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
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
[flake8]
format = wemake
show-source = true
doctests = true
statistics = false
# Plugins:
max-complexity = 6
max-line-length = 80
extend-exclude =
.venv
# Custom:
dotenv_linter/grammar/parsetab.py
select = WPS
per-file-ignores =
# Disable some rules for grammar definition:
dotenv_linter/grammar/parser.py: WPS336
dotenv_linter/grammar/lexer.py: WPS336
# There are multiple assert`s, and subprocesses in tests:
tests/*.py: WPS226
[tool:pytest]
# pytest config: http://doc.pytest.org/en/latest/customize.html
# Strict `@xfail` by default:
xfail_strict = true
# Fail on warnings:
filterwarnings =
error
# 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 =
--strict-markers
--strict-config
--doctest-modules
--cov=dotenv_linter
--cov-branch
--cov-report=term:skip-covered
--cov-report=html
--cov-report=xml
--cov-fail-under=97
# Ignore unrelated files:
--ignore=docs
[mypy]
# The mypy configurations: http://bit.ly/2zEl9WI
enable_error_code =
truthy-bool,
truthy-iterable,
redundant-expr,
unused-awaitable,
# ignore-without-code,
possibly-undefined,
redundant-self,
unimported-reveal,
deprecated,
disallow_any_explicit = false
ignore_missing_imports = true
strict = true
strict_bytes = true
local_partial_types = true
warn_unreachable = true
[mypy-dotenv_linter.grammar.parsetab]
ignore_errors = true
[codespell]
# codespell configuration: https://pypi.org/project/codespell
skip = __pycache__,_build,.mypy_cache