-
Notifications
You must be signed in to change notification settings - Fork 2
/
pants.toml
79 lines (66 loc) · 2.09 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
[GLOBAL]
pants_version = "2.21.0"
pantsd = true
build_patterns = ["BUILD.pants", "BUILD"]
pythonpath = ["pants-plugins"]
print_stacktrace = true
plugins=["libcst==1.3.1"]
backend_packages = [
"pants.backend.plugin_development",
"pants.backend.experimental.cc",
"pants.backend.experimental.cc.lint.clangformat",
"pants.backend.experimental.javascript",
"pants.backend.experimental.javascript.lint.prettier",
"pants.backend.experimental.python", # Enable publishing to PyPI
"pants.backend.python",
"pants.backend.python.lint.autoflake",
"pants.backend.python.lint.bandit",
"pants.backend.python.lint.black",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.isort",
"pants.backend.python.lint.pyupgrade",
"pants.backend.python.typecheck.mypy",
"pants.backend.shell",
"pants.backend.shell.lint.shellcheck",
"pants.backend.shell.lint.shfmt",
"experimental.migrate",
"experimental.scie",
# "experimental.mypyc",
#"experimental.ansible",
#"experimental.ansible.lint.ansible_lint",
#"experimental.swift",
]
[source]
marker_filenames = ["BUILD.pants"]
root_patterns = [
"pants-plugins",
]
#[ansible-galaxy]
#requirements = "requirements.yml" # Relative to the Ansible target BUILD
#collections = ["community.docker"]
[python]
enable_resolves = true
interpreter_constraints = ["==3.9.*"]
tailor_pex_binary_targets = false
[python.resolves]
pants-plugins = "build-support/lockfiles/pants-plugins.lock"
python-default = "build-support/lockfiles/python-default.lock"
[python.resolves_to_interpreter_constraints]
pants-plugins = [">=3.9,<3.10"]
[bandit]
# Skipping assertion warnings - because this is an example project
args = ["--skip B101"]
[flake8]
args = ["--max-line-length 88", "--ignore=E501,W503"]
[isort]
args = "--profile black"
[pyupgrade]
args = "--py39-plus"
#[setuptools]
#extra_requirements = ["wheel", "mypy"]
#lockfile = "build-support/setuptools.txt"
[shfmt]
# See https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd#printer-flags.
args = ["-i 4", "-ci", "-sr"]
[anonymous-telemetry]
enabled = false