forked from lablup/backend.ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpants.toml
112 lines (96 loc) · 3.05 KB
/
pants.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
[GLOBAL]
pants_version = "2.17.0"
pythonpath = ["%(buildroot)s/tools/pants-plugins"]
backend_packages = [
"pants.backend.python",
"pants.backend.python.typecheck.mypy",
"pants.backend.shell",
"pants.backend.experimental.python",
# "pants.backend.experimental.python.lint.ruff",
"pants.backend.experimental.visibility",
"pants.backend.plugin_development",
"ruff_preview", # a vendored backport of the pants 2.20's lint plugin
"setupgen",
"platform_resources",
"scie",
"towncrier_tool",
]
pants_ignore = [
".*/",
"/dist/",
"__pycache__",
"*~", # vim swap/backup files
"/scripts/",
"/plugins/",
"/docs/", # TODO: docs build config
"*.log",
"/tools/pants-plugins",
]
build_file_prelude_globs = ["tools/build-macros.py"]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/",
"/src",
"/stubs",
"/tests",
"/tools/pants-plugins",
]
[test]
extra_env_vars = ["BACKEND_BUILD_ROOT=%(buildroot)s", "HOME"]
[python]
enable_resolves = true
# When changing this main Python version:
# * Update and commit:
# - Regenerate lockfiles
# - pyproject.toml: [tool.mypy].python_executable
# * Let other developers do:
# - Run `./pants export` again
# - Update their local IDE/editor's interpreter path configurations
interpreter_constraints = ["CPython==3.11.6"]
tailor_pex_binary_targets = false
[python-bootstrap]
search_path = ["<PYENV>"]
[python-infer]
use_rust_parser = true
[python-repos]
indexes = ["https://dist.backend.ai/pypi/simple/", "https://pypi.org/simple/"]
[python.resolves]
python-default = "python.lock"
python-kernel = "python-kernel.lock"
pants-plugins = "tools/pants-plugins.lock"
black = "tools/black.lock"
ruff = "tools/ruff.lock"
pytest = "tools/pytest.lock"
coverage-py = "tools/coverage-py.lock"
mypy = "tools/mypy.lock"
towncrier = "tools/towncrier.lock"
# [setup-py-generation]
# first_party_depenency_version_scheme = "exact"
[pex-cli]
version = "v2.1.148"
known_versions = [
"v2.1.148|macos_arm64|5b1dee5a89fff25747753e917f96b8707ea62eed404d037d5f8cf8f2e80a13b7|4197604",
"v2.1.148|macos_x86_64|5b1dee5a89fff25747753e917f96b8707ea62eed404d037d5f8cf8f2e80a13b7|4197604",
"v2.1.148|linux_arm64|5b1dee5a89fff25747753e917f96b8707ea62eed404d037d5f8cf8f2e80a13b7|4197604",
"v2.1.148|linux_x86_64|5b1dee5a89fff25747753e917f96b8707ea62eed404d037d5f8cf8f2e80a13b7|4197604",
]
# When trying a new pex version, you could find out the hash and size-in-bytes as follows:
# $ curl -s -L https://github.com/pantsbuild/pex/releases/download/v2.1.99/pex | tee >(wc -c) >(shasum -a 256) >/dev/null
[black]
install_from_resolve = "black"
interpreter_constraints = ["CPython==3.11.6"] # don't know why this is required... (maybe a Pants bug?)
[ruff]
install_from_resolve = "ruff"
[pytest]
install_from_resolve = "pytest"
args = ["-v", "--suppress-no-test-exit-code"]
execution_slot_var = "BACKEND_TEST_EXEC_SLOT"
[coverage-py]
install_from_resolve = "coverage-py"
report = ["xml", "console"]
[mypy]
install_from_resolve = "mypy"
[towncrier]
install_from_resolve = "towncrier"