summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: a4f7f4d74be15606437b05dd76d00c3583821d2c (plain)
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
[build-system]
requires = ["setuptools >=42.0"]
build-backend = "setuptools.build_meta"

[tool.coverage.run]
source = [
  "build",
  "tests",
]

[tool.coverage.report]
exclude_lines = [
  '\#\s*pragma: no cover',
  '^\s*raise NotImplementedError\b',
]

[tool.coverage.paths]
build = [
  "src",
  "*/site-packages",
  '*\site-packages',
]

[tool.coverage.html]
show_contexts = true

[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["--strict-config", "--strict-markers"]
log_cli_level = "info"
testpaths = ["tests"]
xfail_strict = true
junit_family = "xunit2"
norecursedirs = "tests/integration/*"
markers = [
  "isolated",
  "pypy3323bug",
]
filterwarnings = [
  "error",
  "ignore:path is deprecated.:DeprecationWarning",
  "ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning",
]

[tool.mypy]
files = "src"
python_version = "3.6"
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "truthy-bool", "redundant-expr"]


[[tool.mypy.overrides]]
module = [
  "colorama",   # Optional dependency
  "pep517.*",   # Untyped
  "virtualenv", # Optional dependency
]
ignore_missing_imports = true

[tool.black]
line-length = 127
skip-string-normalization = true
target-version = ["py39", "py38", "py37", "py36"]

[tool.isort]
profile = "black"
lines_between_types = 1
lines_after_imports = 2
line_length = 127
known_first_party = "build"
skip = []  # "build" is included in the default skip list