-
Notifications
You must be signed in to change notification settings - Fork 41
/
pyproject.toml
114 lines (100 loc) · 2.49 KB
/
pyproject.toml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
### Project
[project]
name = "taskcluster-taskgraph"
description = "Build taskcluster taskgraphs"
readme = "README.rst"
authors = [
{ name = "Mozilla Release Engineering", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
]
requires-python = ">=3.8"
dependencies = [
"appdirs>=1.4",
"cookiecutter~=2.1",
"json-e>=2.7",
"mozilla-repo-urls",
"PyYAML>=5.3.1",
"redo>=2.0",
"requests>=2.25",
"slugid>=2.0",
"taskcluster-urls>=11.0",
"voluptuous>=0.12.1",
]
dynamic = ["version"] # set in src/taskgraph/__init__.py
[project.optional-dependencies]
load-image = [
"zstandard"
]
[project.scripts]
taskgraph = "taskgraph.main:main"
[project.urls]
Repository = "https://github.com/taskcluster/taskgraph"
Issues = "https://github.com/taskcluster/taskgraph/issues"
[tool.uv.sources]
pytest-taskgraph = { path = "packages/pytest-taskgraph" }
[tool.uv]
dev-dependencies = [
"coverage",
"mock",
"pre-commit",
"pyright",
"pytest",
"pytest-mock",
"pytest-taskgraph",
"responses",
"sphinx",
"sphinx-autobuild",
"sphinx-argparse",
"sphinx-book-theme >=1",
"sphinxcontrib-mermaid",
"zstandard",
]
### Build
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/taskgraph"]
[tool.hatch.metadata.hooks.custom]
path = ".hatch_build.py" # handles reading version from src/taskgraph/__init__.py
### Test
[tool.pytest.ini_options]
xfail_strict = true
[tool.coverage.run]
branch = true
source = ["src/taskgraph/", "src/taskgraph/run-task/", "packages", "test"]
### Lint and Format
[tool.ruff]
extend-exclude = [
"taskcluster/scripts/external_tools"
]
line-length = 88
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"PLC", "PLE", # pylint
"UP", # pyupgrade
]
ignore = [
"E402",
"E501", # let black handle line-length
"E741",
]
[tool.ruff.lint.isort]
known-first-party = ["pytest-taskgraph", "taskgraph"]
[tool.pyright]
include = ["src"]
reportIncompatibleMethodOverride = false