File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments