-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.cfg
74 lines (64 loc) · 1.38 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
[flake8]
# Selected error codes for reporting
select = A,B,C,D,E,F,G,I,N,T,W
# Directories and files to be excluded from checks
exclude =
.tox,
.git,
__pycache__,
build,
dist,
proto/*,
*.pyc,
*.egg-info,
.cache,
.eggs
# Maximum allowed line length in the code
max-line-length = 100
# Maximum allowed cognitive complexity for functions
max-cognitive-complexity = 10
# Enable syntax checks in docstrings
doctests = True
# Import order style to follow
import-order-style = google
# Convention for docstrings
docstring-convention = google
# File-specific ignore rules
per-file-ignores =
__init__.py:F401
# Specific error codes to ignore
ignore =
A002
A003
D107
E266
E731
W503
[mypy]
# Mypy configuration settings
python_version = 3.10
namespace_packages = True
incremental = True
cache_dir = nul
warn_redundant_casts = True
warn_return_any = False
warn_unused_configs = False
warn_unused_ignores = False
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = False
strict_optional = True
strict_equality = True
explicit_package_bases = True
ignore_missing_imports = True
[tool:pytest]
# PyTest configuration settings
minversion = 6.0
addopts = -ra -q
testpaths =
tests
python_files = test_*.py
python_classes = *Tests
python_functions = test_*