generated from pantsbuild/example-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pants.toml
41 lines (33 loc) · 1.24 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
# Copyright 2020 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
[GLOBAL]
pants_version = "2.0.0b3"
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',
]
# This ensures that the result of `./pants package` is always unique. It will become the default in
# Pants 2.1.
pants_distdir_legacy_paths = false
[source]
# The Python source root is the repo root. See https://www.pantsbuild.org/docs/source-roots.
root_patterns = ["/"]
[python-setup]
# The default interpreter compatibility for code in this repo. Individual targets can override
# this with the `compatibility` field. See
# https://www.pantsbuild.org/docs/python-interpreter-compatibility.
interpreter_constraints = [">=3.7"]
# Use a lockfile. See https://www.pantsbuild.org/docs/python-third-party-dependencies.
requirement_constraints = "constraints.txt"
[protoc]
runtime_targets = ["//:protobuf"]
[flake8]
config = ".flake8"
[isort]
config = [".isort.cfg"]