forked from lablup/backend.ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pants.toml
120 lines (105 loc) · 3.23 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
113
114
115
116
117
118
119
120
[GLOBAL]
pants_version = "2.14.0"
pythonpath = ["%(buildroot)s/tools/pants-plugins"]
local_execution_root_dir="%(buildroot)s/.tmp"
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.isort",
"pants.backend.python.typecheck.mypy",
"pants.backend.experimental.python",
"pants.backend.plugin_development",
"setupgen",
"platform_resources",
"towncrier_tool",
]
pants_ignore = [
"scripts",
"plugins",
"docs", # TODO: docs build config
"*.log"
]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/",
"/src",
"/stubs",
"/tests",
"/tools/pants-plugins",
]
[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.10.8"]
tailor_pex_binary_targets = false
resolves_to_interpreter_constraints = "{'python-kernel': ['==3.10.*'], 'pants-plugins': ['>=3.7,<3.10']}"
[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"
# [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]
version = "black~=22.6"
interpreter_constraints = ["CPython>=3.10,<4"]
lockfile = "tools/black.lock"
[flake8]
version = "flake8>=4.0.1"
extra_requirements.add = [
"setuptools>=60.0",
]
lockfile = "tools/flake8.lock"
[isort]
lockfile = "tools/isort.lock"
interpreter_constraints = ["CPython>=3.10,<4"]
[pytest]
version = "pytest>=7.1.2"
extra_requirements.add = [
"pytest-asyncio>=0.19",
"pytest-aiohttp>=1.0.4",
"pytest-dependency>=0.5.1",
"pytest-mock>=3.8.2",
"aioresponses>=0.7.3",
]
args = ["-v", "-m", "'not integration'"]
lockfile = "tools/pytest.lock"
execution_slot_var = "BACKEND_TEST_EXEC_SLOT"
[coverage-py]
version = "coverage[toml]>=6.4,<7.0"
interpreter_constraints = ["CPython>=3.10,<4"]
report = ["xml", "console"]
lockfile = "tools/coverage-py.lock"
[mypy]
version = "mypy==0.982"
interpreter_constraints = ["CPython>=3.10,<4"]
extra_requirements.add = [
]
lockfile = "tools/mypy.lock"
[towncrier]
version = "towncrier>=21.9"
extra_requirements.add = [
]
lockfile = "tools/towncrier.lock"