-
Notifications
You must be signed in to change notification settings - Fork 147
/
pants.toml
64 lines (57 loc) · 1.31 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
[GLOBAL]
pants_version = "2.11.0"
pythonpath = ["%(buildroot)s/tools/pants-plugins"]
local_execution_root_dir="%(buildroot)s/.tmp"
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.flake8",
"pants.backend.python.typecheck.mypy",
"pants.backend.experimental.python",
"setupgen",
"platform_resources",
]
pants_ignore = [
"scripts",
"plugins",
"docs", # TODO: docs build config
]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/",
"/src",
"/stubs",
"/tests",
"/tools/pants-plugins",
]
[python]
enable_resolves = true
resolves = { python-default = "python.lock" }
interpreter_constraints = ["CPython>=3.10,<3.11"]
lockfile_generator = "pex"
# [setup-py-generation]
# first_party_depenency_version_scheme = "exact"
[flake8]
version = "flake8>=4.0"
extra_requirements.add = [
"flake8-commas>=2.1",
"setuptools>=60.0",
]
lockfile = "tools/flake8.lock"
[pytest]
version = "pytest>=7.0"
extra_requirements.add = [
"pytest-asyncio>=0.18",
"pytest-aiohttp>=1.0.4",
"pytest-mock>=3.5.0",
"aioresponses>=0.7.3",
]
args = ["-v", "-m", "'not integration'"]
lockfile = "tools/pytest.lock"
execution_slot_var = "BACKEND_TEST_EXEC_SLOT"
[mypy]
version = "mypy>=0.950"
extra_requirements.add = [
]
lockfile = "tools/mypy.lock"