-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
68 lines (61 loc) · 1.68 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
[flake8]
# it's not a bug that we aren't using all of hacking, ignore:
exclude =
tests/*
.git
__pycache__
docs/*
build
dist
.tox
.venv
.vscode
.install
.cache
ignore =
W503 # Line break occurred after a binary operator (opposite of W504) see https://github.com/psf/black#line-breaks--binary-operators
D107 # Missing docstring in __init__
D301 # Use r""" if any backslashes in a docstring
F812 # list comprehension redefines ...
H101 # Use TODO(NAME)
H202 # assertRaises Exception too broad
E266 # Too many leading '#' for block comment
per-file-ignores = __init__.py:F401
max-line-length = 160
max-complexity = 18
select = B,C,E,F,W,T4,B9
docstring-convention = google
[pydocstyle]
add_select = D211 # No blank lines allowed before class docstring
add_ignore = D100,D101,D102,D103,D104,D105,D107,D202
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
# D202: No blank lines allowed after function docstring
convention = google
[tool:pytest]
testpaths = tests
addopts =
--strict
--pdbcls=tests:Debugger
-r sxX
--cov=async_rx
--cov-report=html
--cov-report=term-missing:skip-covered
--cov-config=setup.cfg
--no-cov-on-fail
cache_dir = .cache
markers =
[mypy]
cache_dir = .cache/mypy/
check_untyped_defs = True
ignore_errors = False
ignore_missing_imports = True
strict_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True