generated from pantsbuild/example-python
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpants.toml
52 lines (44 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
# Copyright 2020 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
[GLOBAL]
pants_version = "2.15.0rc5"
pantsd = true # Enable the Pants daemon for better performance.
backend_packages.add = [
"pants.backend.awslambda.python",
"pants.backend.codegen.protobuf.python",
"pants.backend.python",
"pants.backend.python.lint.docformatter",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.isort",
# "pants.backend.python.typecheck.mypy",
"pants.backend.docker",
]
[source]
# The Python source root is the repo root. See https://www.pantsbuild.org/docs/source-roots.
root_patterns = [
"/",
"src/python",
"test/python"
]
[python-bootstrap]
search_path = [
# This will use all interpreters in `$(pyenv root)/versions`.
"<PYENV>",
"<CONDA_PYTHON_EXE>",
"<PATH>",
]
[repl]
shell = "ipython"
[python]
# 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.8,<=3.9"]
# Use a constraints file. See https://www.pantsbuild.org/docs/python-third-party-dependencies.
#requirement_constraints = "constraints.txt"
#resolve_all_constraints = false
enable_resolves = true
[anonymous-telemetry]
enabled = true
repo_id = "83C8E4F3-E90C-4A98-89CD-6260AF4DB115"