-
Notifications
You must be signed in to change notification settings - Fork 542
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (106 loc) · 3.24 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (106 loc) · 3.24 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# there is no Python project,
# this file is just for configuring tools used in Python tests
[tool.inline-snapshot]
format-command = "pixi run -e lint ruff format --stdin-filename {filename}"
test-dir = "tests/integration_python"
[tool.pytest.ini_options]
# Temp dirs live in pytest-temp/ (set via PYTEST_DEBUG_TEMPROOT in
# tests/integration_python/conftest.py) so they stay on the same filesystem
# as the cache (faster than /tmp on a different FS). Pytest keeps the last
# tmp_path_retention_count runs and prunes older ones, so failed or
# interrupted runs can't accumulate unboundedly.
addopts = "--timeout=600 --durations=0"
markers = ["slow: marks tests as slow", "extra_slow: marks tests as extra slow"]
testpaths = ["tests/integration_python"]
tmp_path_retention_count = 2
tmp_path_retention_policy = "failed"
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
[tool.tbump]
github_url = "https://github.com/prefix-dev/pixi"
[tool.tbump.version]
current = "0.73.0"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(rc
(?P<candidate>\d+)
)?
'''
[tool.tbump.git]
# The current version will get updated when tbump is run
message_template = "Bump version: {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "CITATION.cff"
[[tool.tbump.file]]
search = '^version = "{current_version}"'
src = "crates/pixi/Cargo.toml"
[[tool.tbump.file]]
search = "pixi-version: v{current_version}"
src = "docs/integration/ci/github_actions.md"
[[tool.tbump.file]]
search = "ARG PIXI_VERSION=v{current_version}"
src = "docs/integration/editor/vscode.md"
[[tool.tbump.file]]
search = "/pixi.sh/v{current_version}/"
src = "schema/schema.json"
[[tool.tbump.file]]
search = "/pixi.sh/v{current_version}/"
src = "schema/pyproject/schema.json"
[[tool.tbump.file]]
search = "Generated from `pixi` v{current_version}"
src = "schema/pyproject/partial-pixi.json"
[[tool.tbump.file]]
search = "Version: v{current_version}"
src = "install/install.sh"
[[tool.tbump.file]]
search = "Version: v{current_version}"
src = "install/install.ps1"
[[tool.tbump.file]]
search = "PIXI_VERSION = \"{current_version}\""
src = "tests/integration_python/common.py"
[[tool.tbump.file]]
search = "None => \"{current_version}\","
src = "crates/pixi_consts/src/consts.rs"
[[tool.tbump.file]]
search = "ghcr.io/prefix-dev/pixi:{current_version}"
src = "docs/deployment/container.md"
[[tool.tbump.field]]
# the name of the field
name = "candidate"
# the default value to use, if there is no match
default = ""
[tool.ty.environment]
python-platform = "all"
python-version = "3.13"
[tool.ty.src]
exclude = [
"**/*.ipynb",
"**/docs_hooks.py",
"scripts/test_native_certs.py",
"pixi-build-backends",
"tests/data",
"site",
"output",
"target",
"pytest-temp",
]
# The docs and examples snippets import third-party packages that are not part
# of the type-checking environment, so their unresolved imports and the
# follow-on attribute errors are not actionable here.
[[tool.ty.overrides]]
include = ["docs/**", "examples/**"]
[tool.ty.overrides.rules]
unresolved-attribute = "ignore"
unresolved-import = "ignore"