-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
35 lines (32 loc) · 1013 Bytes
/
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
[aliases]
test = pytest
[build_sphinx]
project = Spicerack
source-dir = doc/source
build-dir = doc/build
[mypy]
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
ignore_missing_imports = True
; Cannot enable it as it generates errors on decorated methods of the type:
; Untyped decorator makes function FOO untyped
; It's probably due to the use of @wraps and the nested decorators to allow
; to use them both with and without parameters.
; TODO: re-evaluate ways to enable it
; disallow_untyped_decorators = True
no_implicit_optional = True
warn_unused_ignores = True
show_error_context = True
warn_unused_configs = True
exclude = (?x)(
^spicerack/tests/ # Ignore all tests
)
[flake8]
application-package-names = spicerack
# E203 whitespace before ':', from https://github.com/psf/black/blob/master/docs/compatible_configs.md#flake8
# I101, import sorting, as isort takes care of it
extend-ignore = E203, I101
max-line-length = 120
statistics = True
ignore = W503