-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
46 lines (39 loc) · 954 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
36
37
38
39
40
41
42
43
44
45
46
[flake8]
max-line-length = 99
ignore = W503, W605
exclude = docs/source/conf.py
[pylint.message-control]
disable = E0401,R0401,R0903,R0902,R0913,R0912,R0914,R0911,R0801
[tool:pytest]
testpaths = tests
addopts = -rsxX
# Transform warnings to errors
filterwarnings =
error
ignore::DeprecationWarning
ignore::telegram.utils.deprecate.TelegramDeprecationWarning
# Require typing
[mypy]
warn_unused_configs = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True
# Ignore missing import for PTB
# It doesn't have type hinting, yet
[mypy-telegram.*]
ignore_missing_imports = True
# Ignore missing import for vobject and geopy
[mypy-vobject.*]
ignore_missing_imports = True
[mypy-geopy.*]
ignore_missing_imports = True
# Ignore tests and main.py in coverage
[coverage:run]
branch = True
parallel = True
concurrency = thread, multiprocessing
source =
components
omit =
tests/
main.py