| 1 |
[tool.pytest.ini_options] |
| 2 |
testpaths = "t/unit/" |
| 3 |
python_classes = "test_*" |
| 4 |
xfail_strict=true |
| 5 |
markers = ["sleepdeprived_patched_module", "masked_modules", "patched_environ", "patched_module", "flaky", "timeout", "amqp"] |
| 6 |
|
| 7 |
[tool.mypy] |
| 8 |
warn_unused_configs = true |
| 9 |
strict = false |
| 10 |
follow_imports = "skip" |
| 11 |
show_error_codes = true |
| 12 |
disallow_untyped_defs = true |
| 13 |
ignore_missing_imports = true |
| 14 |
files = [ |
| 15 |
"celery/__main__.py", |
| 16 |
"celery/states.py", |
| 17 |
"celery/signals.py", |
| 18 |
"celery/fixups", |
| 19 |
"celery/concurrency/thread.py", |
| 20 |
"celery/security/certificate.py", |
| 21 |
"celery/utils/text.py", |
| 22 |
"celery/schedules.py", |
| 23 |
"celery/apps/beat.py", |
| 24 |
] |
| 25 |
|
| 26 |
[tool.codespell] |
| 27 |
ignore-words-list = "assertin" |
| 28 |
skip = "./.*,docs/AUTHORS.txt,docs/history/*,docs/spelling_wordlist.txt,Changelog.rst,CONTRIBUTORS.txt,*.key" |
| 29 |
|
| 30 |
[tool.coverage.run] |
| 31 |
branch = true |
| 32 |
cover_pylib = false |
| 33 |
include = ["*celery/*"] |
| 34 |
omit = ["celery.tests.*"] |
| 35 |
|
| 36 |
[tool.coverage.report] |
| 37 |
exclude_lines = [ |
| 38 |
"pragma: no cover", |
| 39 |
"if TYPE_CHECKING:", |
| 40 |
"except ImportError:" |
| 41 |
] |
| 42 |
omit = [ |
| 43 |
"*/python?.?/*", |
| 44 |
"*/site-packages/*", |
| 45 |
"*/pypy/*", |
| 46 |
"*/celery/bin/graph.py", |
| 47 |
"*celery/bin/logtool.py", |
| 48 |
"*celery/task/base.py", |
| 49 |
"*celery/contrib/sphinx.py", |
| 50 |
"*celery/concurrency/asynpool.py", |
| 51 |
"*celery/utils/debug.py", |
| 52 |
"*celery/contrib/testing/*", |
| 53 |
"*celery/contrib/pytest.py" |
| 54 |
] |