forked from lablup/backend.ai
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pants.toml
105 lines (90 loc) · 2.85 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
[GLOBAL]
pants_version = "2.16.0"
pythonpath = ["%(buildroot)s/tools/pants-plugins"]
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.typecheck.mypy",
"pants.backend.experimental.python",
"pants.backend.experimental.python.lint.ruff",
"pants.backend.plugin_development",
"setupgen",
"platform_resources",
"towncrier_tool",
]
pants_ignore = [
".*/",
"/dist/",
"__pycache__",
"*~", # vim swap/backup files
"/scripts/",
"/plugins/",
"/docs/", # TODO: docs build config
"*.log",
"/tools/pants-plugins",
]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/",
"/src",
"/stubs",
"/tests",
"/tools/pants-plugins",
]
[test]
extra_env_vars = ["BACKEND_BUILD_ROOT=%(buildroot)s"]
[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.4"]
tailor_pex_binary_targets = false
[python-bootstrap]
search_path = ["<PYENV>"]
[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.99"
# known_versions = [
# "v2.1.99|macos_arm64|7e00a1d81a43fb913085182b2eba2f3b61822dd99fe1ddd0931aa824959a759f|3811337",
# "v2.1.99|macos_x86_64|7e00a1d81a43fb913085182b2eba2f3b61822dd99fe1ddd0931aa824959a759f|3811337",
# "v2.1.99|linux_arm64|7e00a1d81a43fb913085182b2eba2f3b61822dd99fe1ddd0931aa824959a759f|3811337",
# "v2.1.99|linux_x86_64|7e00a1d81a43fb913085182b2eba2f3b61822dd99fe1ddd0931aa824959a759f|3811337",
# ]
# 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.4"] # 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"