forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
65 lines (58 loc) · 1.42 KB
/
pyproject.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
[tool.black]
line-length = 100
exclude = '''
/(
# These would already be ignored by pants, but having them here allows for manually running Black if one so wishes.
| \.git
| \.mypy_cache
| dist
| \.pants\.d
| virtualenvs
# This file intentionally contains invalid syntax
# It trips black up.
| compilation_failure
)/
'''
[tool.isort]
profile = "black"
line_length = 100
color_output = true
known_first_party = ["internal_plugins", "pants", "pants_test"]
[tool.coverage.report]
# We inject this file at test time (see src/python/pants/conftest.py), and so
# coverage will gather stats for it, but it doesn't correspond to a real source file,
# so reporting will fail, unless we omit it here.
omit = ["src/python/pants/__init__.py"]
[tool.mypy]
namespace_packages = true
explicit_package_bases = true
mypy_path = "src/python:tests/python:testprojects/src/python"
no_implicit_optional = true
implicit_reexport = false
strict_equality = true
warn_unused_configs = true
warn_unused_ignores = true
warn_return_any = true
warn_redundant_casts = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_context = true
show_error_codes = true
show_traceback = true
[[tool.mypy.overrides]]
module = [
"bs4",
"chevron",
"colors",
"dockerfile",
"fasteners",
"freezegun",
"hdrh",
"hdrh.histogram",
"ijson",
"pex.*",
"psutil",
"setproctitle",
]
ignore_missing_imports = true