This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
98 lines (81 loc) · 1.59 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[build-system]
requires = [
"setuptools>=42",
"wheel",
"setuptools_scm>=3.4",
]
build-backend = "setuptools.build_meta"
############
# Manifest #
############
[tool.check-manifest]
ignore = ["src/antidote/_internal/scm_version.py"]
##########
# Pytest #
##########
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["compiled_only"]
############
# Coverage #
############
[tool.coverage.run]
branch = true
source = ["antidote", "src"]
[tool.coverage.paths]
source = [
"src/",
".tox/py*/lib/python*/site-packages/",
".tox/pypy*/site-packages"
]
[tool.coverage.report]
exclude_lines = [
"# pragma: no cover",
"^if TYPE_CHECKING:$",
"^\\s*\\.\\.\\.$"
]
###########
# PyRight #
###########
[tool.pyright]
include = [
"src",
"tests",
]
pythonVersion = "3.7"
pythonPlatform = "All"
typeCheckingMode = "strict"
# Python code is doing a lot of isinstance to actually verify typing
reportUnnecessaryIsInstance = false
# Yes we have cycles, it's not great but if tests are passing it means it works.
reportImportCycles = false
# some cast / ignores are for MyPy.
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnnecessaryCast = "warning"
########
# Mypy #
########
[tool.mypy]
files = [
"src",
"tests",
]
python_version = "3.7"
strict = true
#########
# Black #
#########
[tool.black]
line-length = 100
target-version = ['py37']
#########
# isort #
#########
[tool.isort]
profile = "black"
py_version=37
line_length=100
balanced_wrapping=true
combine_as_imports=true
force_alphabetical_sort_within_sections=true
sort_relative_in_force_sorted_sections=true