Skip to content

Commit 50c922b

Browse files
authored
Create pyproject.toml
1 parent 4da7cfa commit 50c922b

1 file changed

Lines changed: 81 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.black]
6+
line-length = 88
7+
target-version = ['py39', 'py310', 'py311']
8+
include = '\.pyi?$'
9+
extend-exclude = '''
10+
/(
11+
| \.eggs
12+
| \.git
13+
| \.hg
14+
| \.mypy_cache
15+
| \.tox
16+
| \.venv
17+
| _build
18+
| buck-out
19+
| build
20+
| dist
21+
)/
22+
'''
23+
24+
[tool.isort]
25+
profile = "black"
26+
multi_line_output = 3
27+
include_trailing_comma = true
28+
force_grid_wrap = 0
29+
use_parentheses = true
30+
line_length = 88
31+
known_first_party = ["src"]
32+
33+
[tool.mypy]
34+
python_version = "3.9"
35+
warn_return_any = true
36+
warn_unused_configs = true
37+
disallow_untyped_defs = true
38+
ignore_missing_imports = true
39+
40+
[tool.pytest.ini_options]
41+
testpaths = ["tests"]
42+
python_files = ["test_*.py", "*_test.py"]
43+
python_classes = ["Test*"]
44+
python_functions = ["test_*"]
45+
addopts = [
46+
"--strict-markers",
47+
"--strict-config",
48+
"--tb=short",
49+
"--cov=src",
50+
"--cov-report=term-missing",
51+
"--cov-report=xml",
52+
"-v"
53+
]
54+
filterwarnings = [
55+
"error",
56+
"ignore::DeprecationWarning",
57+
]
58+
59+
[tool.coverage.run]
60+
source = ["src"]
61+
omit = [
62+
"*/tests/*",
63+
"*/test_*.py",
64+
"*/__pycache__/*",
65+
"*/setup.py",
66+
]
67+
68+
[tool.coverage.report]
69+
exclude_lines = [
70+
"pragma: no cover",
71+
"def __repr__",
72+
"if self.debug:",
73+
"if settings.DEBUG",
74+
"raise AssertionError",
75+
"raise NotImplementedError",
76+
"if 0:",
77+
"if __name__ == .__main__.:",
78+
"class .*\\bProtocol\\):",
79+
"@(abc\\.)?abstractmethod",
80+
]
81+
fail_under = 80

0 commit comments

Comments
 (0)