-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
54 lines (48 loc) · 1.9 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
[flake8]
exclude = .git,logs,.*/*.py,*.egg-info,versioneer.py,pachinko/_version.py
max-line-length = 99
max-complexity = 10
ignore = W503, W391 #F405 - start with no ignored errors and add as required
# ref W503: see notes in https://lintlyci.github.io/Flake8Rules/rules/W503.html
# ref W391: see pos issue with vim https://github.com/PyCQA/pycodestyle/issues/365
[mypy]
# mypy uses a cache to speed up checking
incremental = True
# mypy will error if a config is set but not necessary
warn_unused_configs = True
# mypy will error if ignore comment is use on non-erroring line
warn_unused_ignores = True
# mypy will check the body of defs even if they don't have type sig
check_untyped_defs = True
# mypy will error if an unnecessary cast is used
warn_redundant_casts = True
# setting default arg to None still requires `Optional`
no_implicit_optional = True
# mypy checks the use of None values
strict_optional = True
# mypy ignores if an import can't be found, this is necessary for not throwing errors when
# when importing external (3rd party) modules
ignore_missing_imports = True
# mypy follows and checks imported modules, gives more coverage
follow_imports = normal
# mypy follows and checks imported modules even without __init__.py
# WARN: this will still miss non-imported modules like test files with __init__.py!
namespace_packages = True
# mypy prepends errors with the corresponding error code
show_error_codes = True
exclude = versioneer.py|pachinko/_version.py
[pydocstyle]
convention = google
add_ignore = D105, D107
#add_ignore = D100,D101,D102,D103,D104,D200 - start with no ignored errors and add as required
[tool:pytest]
addopts = --cov=./pachinko --cov-report xml --cov-report term
[coverage:run]
# Omit auto-generated versioneer file from test coverage
omit = pachinko/_version.py
[versioneer]
VCS = git
style = pep440
versionfile_source = pachinko/_version.py
versionfile_build = pachinko/_version.py
tag_prefix = ""