2018-08-29 15:39:44 +02:00
|
|
|
[metadata]
|
2018-08-29 15:49:52 +02:00
|
|
|
license_file = LICENSE.dual
|
2018-08-29 15:39:44 +02:00
|
|
|
|
2015-08-14 21:30:30 +02:00
|
|
|
[build_sphinx]
|
|
|
|
source-dir = docs/source
|
|
|
|
build-dir = docs/build
|
|
|
|
all_files = 1
|
|
|
|
|
|
|
|
[upload_sphinx]
|
2015-08-11 21:49:38 +02:00
|
|
|
upload-dir = docs/build/html
|
2016-04-28 15:03:43 +02:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length = 99
|
2019-10-14 10:10:51 +02:00
|
|
|
ignore = W503, W605
|
2020-10-09 17:22:07 +02:00
|
|
|
extend-ignore = E203
|
2019-10-14 10:10:51 +02:00
|
|
|
exclude = setup.py, docs/source/conf.py
|
2016-05-15 02:52:35 +02:00
|
|
|
|
2017-08-11 23:58:41 +02:00
|
|
|
[tool:pytest]
|
|
|
|
testpaths = tests
|
|
|
|
addopts = --no-success-flaky-report -rsxX
|
|
|
|
filterwarnings =
|
|
|
|
error
|
|
|
|
ignore::DeprecationWarning
|
2018-09-21 08:57:01 +02:00
|
|
|
ignore::telegram.utils.deprecate.TelegramDeprecationWarning
|
2017-08-11 23:58:41 +02:00
|
|
|
|
|
|
|
[coverage:run]
|
2017-09-01 08:44:45 +02:00
|
|
|
branch = True
|
2017-08-11 23:58:41 +02:00
|
|
|
source = telegram
|
2017-09-01 08:44:45 +02:00
|
|
|
parallel = True
|
|
|
|
concurrency = thread, multiprocessing
|
2017-08-11 23:58:41 +02:00
|
|
|
omit =
|
|
|
|
tests/
|
|
|
|
telegram/__main__.py
|
|
|
|
telegram/vendor/*
|
|
|
|
|
2020-10-06 19:28:40 +02:00
|
|
|
[coverage:report]
|
|
|
|
exclude_lines =
|
|
|
|
if TYPE_CHECKING:
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
warn_unused_ignores = True
|
|
|
|
warn_unused_configs = True
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
|
|
|
disallow_untyped_decorators = True
|
|
|
|
show_error_codes = True
|
|
|
|
|
|
|
|
[mypy-telegram.vendor.*]
|
|
|
|
ignore_errors = True
|
|
|
|
|
|
|
|
# Disable strict optional for telegram objects with class methods
|
|
|
|
# We don't want to clutter the code with 'if self.bot is None: raise RuntimeError()'
|
|
|
|
[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]
|
|
|
|
strict_optional = False
|