1[metadata]
2license_file = LICENSE.dual
3
4[build_sphinx]
5source-dir = docs/source
6build-dir = docs/build
7all_files = 1
8
9[upload_sphinx]
10upload-dir = docs/build/html
11
12[flake8]
13max-line-length = 99
14ignore = W503, W605
15extend-ignore = E203
16exclude = setup.py, docs/source/conf.py, telegram/vendor
17
18[pylint]
19ignore = vendor
20
21[pylint.message-control]
22disable = C0330,R0801,R0913,R0904,R0903,R0902,W0511,C0116,C0115,W0703,R0914,R0914,C0302,R0912,R0915,R0401
23
24[tool:pytest]
25testpaths = tests
26addopts = --no-success-flaky-report -rsxX
27filterwarnings =
28	error
29	ignore::DeprecationWarning
30	ignore::telegram.utils.deprecate.TelegramDeprecationWarning
31
32[coverage:run]
33branch = True
34source = telegram
35parallel = True
36concurrency = thread, multiprocessing
37omit =
38	tests/
39	telegram/__main__.py
40	telegram/vendor/*
41
42[coverage:report]
43exclude_lines =
44	if TYPE_CHECKING:
45
46[mypy]
47warn_unused_ignores = True
48warn_unused_configs = True
49disallow_untyped_defs = True
50disallow_incomplete_defs = True
51disallow_untyped_decorators = True
52show_error_codes = True
53
54[mypy-telegram.vendor.*]
55ignore_errors = True
56
57[mypy-telegram.callbackquery,telegram.chat,telegram.message,telegram.user,telegram.files.*,telegram.inline.inlinequery,telegram.payment.precheckoutquery,telegram.payment.shippingquery,telegram.passport.passportdata,telegram.passport.credentials,telegram.passport.passportfile,telegram.ext.filters]
58strict_optional = False
59
60[mypy-urllib3.*]
61ignore_missing_imports = True
62
63[mypy-apscheduler.*]
64ignore_missing_imports = True
65
66[egg_info]
67tag_build =
68tag_date = 0
69
70