-
Notifications
You must be signed in to change notification settings - Fork 0
/
pants.toml
88 lines (73 loc) · 2.24 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
[GLOBAL]
pants_version = "2.20.0"
ignore_warnings = [
'$regex$DEPRECATED',
]
pythonpath = ["%(buildroot)s/pants-plugins"]
backend_packages = [
"pants.backend.shell",
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.docformatter",
"pants.backend.python.lint.isort",
"pants.backend.python.typecheck.mypy",
"pants.backend.experimental.visibility",
# plugins
"pants.backend.plugin_development",
"internal_plugins.project_version",
]
plugins = ["packaging==21.3"]
# plugin options
[project-version]
as_json = true
match_git = false
[python]
enable_resolves = true
interpreter_constraints = ["CPython>=3.9,<3.10"]
[python.resolves]
pants-plugins = "pants-plugins/requirements-pants-plugins.lock"
python-default = "requirements/requirements.lock"
devtools = "requirements/devtools.lock"
testtools = "requirements/testtools.lock"
[python.resolves_to_interpreter_constraints]
# must use '<3.10' because Pants doesn't publish Python wheels for 3.10
# using '<=3.10' will make './pants generate-lockfiles --resolve=pants-plugins` fail
pants-plugins = ["CPython>=3.9,<3.10"]
[python-bootstrap]
# https://www.pantsbuild.org/docs/python-interpreter-compatibility#changing-the-interpreter-search-path
search_path = ["<PYENV_LOCAL>", "<PATH>"]
[anonymous-telemetry]
enabled = true
repo_id = "df6470e5-420b-4930-b6e6-638cc06ffe0b"
[source]
# https://www.pantsbuild.org/docs/source-roots#no-source-root
root_patterns = [
"/", "/pants-plugins"
]
[mypy]
install_from_resolve = "devtools"
requirements = [
"//requirements:requirements-dev#mypy",
"types-requests",
"types-python-dateutil",
"types-setuptools",
]
[black]
install_from_resolve = "devtools"
requirements = ["//requirements:requirements-dev#black"]
[docformatter]
install_from_resolve = "devtools"
requirements = ["//requirements:requirements-dev#docformatter"]
[isort]
install_from_resolve = "devtools"
[pytest]
# https://www.pantsbuild.org/docs/reference-pytest#section-extra-requirements
install_from_resolve = "testtools"
requirements = [
"//requirements:requirements-test#pytest",
"//requirements:requirements-test#pytest-vcr",
]
args = ["-v", "--vcr-record=none"]
[tailor]
ignore_paths = ["requirements/BUILD"]