-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpants.toml
55 lines (44 loc) · 1.72 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
[GLOBAL]
pants_version = "2.20.0"
backend_packages = [
"pants.backend.shell",
"pants.backend.shell.lint.shfmt",
"pants.backend.shell.lint.shellcheck",
"pants.backend.docker",
# "pants.backend.docker.lint.hadolint",
"pants.backend.python",
"pants.backend.python.lint.docformatter",
"pants.backend.python.lint.black",
# "pants.backend.python.lint.flake8",
# "pants.backend.python.lint.autoflake",
"pants.backend.python.typecheck.mypy",
]
[source]
root_patterns = ["/"]
[test]
extra_env_vars = [
'OPENAI_API_KEY=asdf'
]
[pytest]
args = ["--disable-warnings", "-vv"]
[python]
# The default interpreter constraints for code in this repo. Individual targets can override
# this with the `interpreter_constraints` field. See
# https://www.pantsbuild.org/docs/python-interpreter-compatibility.
# Modify this if you don't have Python 3.9 on your machine.
# This can be a range, such as [">=3.8,<3.11"], but it's usually recommended to restrict
# to a single minor version.
interpreter_constraints = ["CPython>=3.11,<3.12"]
# Enable the "resolves" mechanism, which turns on lockfiles for user code. See
# https://www.pantsbuild.org/docs/python-third-party-dependencies. This also adds the
# `generate-lockfiles` goal for Pants to generate the lockfile for you.
enable_resolves = true
resolves = { python-default = "constraints.txt"}
[python-bootstrap]
# We search for interpreters 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>"]
[docker]
build_verbose = true