-
-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (80 loc) · 1.67 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (80 loc) · 1.67 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[build-system]
requires = ["setuptools >= 80.9.0, < 81"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "format" },
{ include-group = "type-check" },
{ include-group = "build" },
{ include-group = "docs" },
"hiredis",
"twine",
"wheel",
"tox",
]
test = [
"pytest",
"pytest-benchmark[histogram]",
"pytest-cov",
]
lint = [
"flake8",
"flake8-bugbear",
"flake8-quotes",
"isort",
]
format = [
"black",
]
type-check = [
"mypy",
# Include test group so mypy can see the types of the pytest modules the tests import.
{ include-group = "test" },
]
build = [
"build",
]
docs = [
"alabaster",
"sphinx",
"sphinxcontrib-napoleon",
]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--cov=dramatiq --cov=tests --cov-report=term --no-cov-on-fail"
[tool.coverage.run]
branch = true
source = ['dramatiq', 'tests']
[tool.black]
line-length = 120
target-version = ["py310", "py311", "py312", "py313", "py314"]
[tool.isort]
line_length = 120
known_first_party = ["dramatiq"]
multi_line_output = 5
order_by_type = true
profile = "black"
add_imports = [
# Remove annotations import once we only support python 3.14+
"from __future__ import annotations",
]
[tool.mypy]
packages = ["dramatiq", "tests"]
python_version = "3.10"
pretty = true
show_column_numbers = true
show_error_context = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
[[tool.mypy.overrides]]
module = [
"gevent",
"greenlet",
"pika",
"pika.exceptions",
"pylibmc",
]
ignore_missing_imports = true