-
Notifications
You must be signed in to change notification settings - Fork 88
/
pyproject.toml
83 lines (70 loc) · 1.74 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
# isort is used for autoformatting Python code
#
# ref: https://pycqa.github.io/isort/
#
[tool.isort]
profile = "black"
# black is used for autoformatting Python code
#
# ref: https://black.readthedocs.io/en/stable/
#
[tool.black]
line-length = 88
target_version = [
"py39",
"py310",
"py311",
"py312",
]
# pytest is used for running Python based tests
#
# ref: https://docs.pytest.org/en/stable/
#
[tool.pytest.ini_options]
addopts = "--verbose --color=yes --durations=10"
asyncio_mode = "auto"
testpaths = ["tests"]
# pytest-cov / coverage is used to measure code coverage of tests
#
# ref: https://coverage.readthedocs.io/en/stable/config.html
#
[tool.coverage.run]
omit = [
"tests/*.py",
"*/_version.py",
"dask-gateway-server/dask_gateway_server/managers/jobqueue/launcher.py",
]
source = [
"dask-gateway-server/dask_gateway_server",
"dask-gateway/dask_gateway",
]
# tbump is used to simplify and standardize the release process when updating
# the version, making a git commit and tag, and pushing changes.
#
# ref: https://github.com/your-tools/tbump#readme
#
[tool.tbump]
github_url = "https://github.com/dask/dask-gateway"
[tool.tbump.version]
current = "2024.1.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
\.?
(?P<pre>((alpha|beta|rc)\.\d+)|)
'''
[tool.tbump.git]
message_template = "Release {new_version}"
tag_template = "{new_version}"
[[tool.tbump.file]]
src = "dask-gateway/dask_gateway/_version.py"
search = '__version__ = "{current_version}"'
[[tool.tbump.file]]
src = "dask-gateway-server/dask_gateway_server/_version.py"
search = '__version__ = "{current_version}"'
[[tool.tbump.file]]
src = "resources/helm/dask-gateway/Chart.yaml"
search = 'appVersion: "{current_version}"'