-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpants.toml
53 lines (45 loc) · 1.44 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
[GLOBAL]
pants_version = "2.15.0rc0"
backend_packages = [
'pants.backend.python',
'pants.backend.python.lint.black',
'pants.backend.python.lint.isort',
'pants.backend.python.lint.flake8',
'pants.backend.python.lint.docformatter',
'pants.backend.python.lint.pyupgrade',
'pants.backend.python.typecheck.mypy',
'pants.backend.docker',
]
[source]
root_patterns = [
'/3rdparty/python',
'/src/python',
'/src/docker',
'/tests/python',
]
[python]
enable_resolves = true
# The default interpreter compatibility for code in this repo. Individual targets can override
# this with the `interpreter_constraints` field. See
# https://www.pantsbuild.org/docs/python-interpreter-compatibility.
interpreter_constraints = [">=3.10"]
[python-bootstrap]
# We search for interpreters on both on the $PATH and in the `$(pyenv root)/versions` folder.
# If you're using macOS, you may want to leave off the <PATH> entry to avoid using the
# problematic system Pythons. See
# https://www.pantsbuild.org/docs/python-interpreter-compatibility#changing-the-interpreter-search-path.
search_path = ["<PATH>", "<PYENV>"]
[flake8]
lockfile = '3rdparty/python/flake8.lock'
config = ".flake8"
[isort]
lockfile = '3rdparty/python/isort.lock'
config = [".isort.cfg"]
[mypy]
lockfile = '3rdparty/python/mypy.lock'
version = 'mypy==0.991'
config = ".mypy.ini"
# Let's be a good OSS citizen!
[anonymous-telemetry]
enabled = true
repo_id = "a20f5ec5-297a-4ed3-9cc2-ea96a5224015"