-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpants.toml
107 lines (91 loc) · 2.1 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
[GLOBAL]
pants_version = "2.20.0"
colors = true
pants_ignore = [".trunk"]
backend_packages = [
# order is relevant here, since we want to minimize the need for lint and fmt reruns
"pants.backend.python.lint.pylint",
"pants.backend.python.lint.docformatter",
"pants.backend.python.lint.black",
"pants.backend.python.typecheck.mypy",
"pants.backend.build_files.fmt.black",
"pants.backend.experimental.python.lint.ruff.check",
"pants.backend.experimental.tools.yamllint",
"pants.backend.python",
"pants.backend.shell.lint.shellcheck",
"pants.backend.shell.lint.shfmt",
"pants.backend.shell",
]
[python]
interpreter_constraints = [">=3.12,<3.13"]
enable_resolves = true
default_resolve = "python-default"
[python.resolves]
python-default = "3rdparty/python/default.lock"
[python-infer]
init_files = "always"
unowned_dependency_behavior = "error"
use_rust_parser = true
[repl]
shell = "ipython"
[anonymous-telemetry]
enabled = true
[test]
use_coverage = true
[coverage-py]
install_from_resolve = "python-default"
filter = ["regybox"]
[black]
install_from_resolve = "python-default"
requirements = [
"//:root#black",
]
interpreter_constraints = ["CPython>=3.12,<3.13"]
config = "pyproject.toml"
args = ["--preview"]
[docformatter]
install_from_resolve = "python-default"
requirements = [
"//:root#docformatter",
]
args = [ # redundant with pyproject.toml for some reason
'--style="google"',
"--wrap-summaries=80",
"--wrap-descriptions=80",
]
[ipython]
install_from_resolve = "python-default"
requirements = [
"//:root#ipython",
]
[mypy]
install_from_resolve = "python-default"
requirements = [
"//:root#mypy",
]
[pylint]
install_from_resolve = "python-default"
requirements = [
"//:root#pylint",
]
config = ".pylintrc"
[pytest]
install_from_resolve = "python-default"
requirements = [
"//:root#pytest",
"//:root#pytest-cov",
]
[ruff]
install_from_resolve = "python-default"
requirements = [
"//:root#ruff",
]
[yamllint]
install_from_resolve = "python-default"
requirements = [
"//:root#yamllint",
"//:yamls",
"//:yamllint-config",
]
config_file_name = ".yamllint.yml"
args = ["--strict"]