-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
79 lines (55 loc) · 1.4 KB
/
setup.cfg
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
[flake8]
# W503 line break before binary operator
# B008 Do not perform function calls in argument defaults => Conflict with `fastapi`
# B306 `BaseException.message` has been deprecated as of Python 2.6 and is removed in Python 3
ignore = W503, B008, B306, DTZ005
max-line-length = 88
# G flake8-logging-format
enable-extensions=G
# options for flake8-quotes
inline-quotes = double
multiline-quotes = double
docstring-quotes = double
avoid-escape = False
[isort]
line_length=88
virtual_env=python-env
[tool:pytest]
addopts = --cov-report html --cov=app
testpaths = tests
asyncio_mode = auto
[coverage:run]
source = app/*
concurrency = greenlet
[coverage:report]
precision = 2
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
[mypy]
python_version = 3.10
plugins = pydantic.mypy, sqlalchemy.ext.mypy.plugin
disallow_untyped_defs = True
check_untyped_defs = True
warn_return_any = True
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
[mypy-elasticsearch_dsl.*]
ignore_missing_imports = True
[mypy-jsonschema.*]
ignore_missing_imports = True
[mypy-lz4.*]
ignore_missing_imports = True
[mypy-msgpack.*]
ignore_missing_imports = True
[mypy-psycopg2.*]
ignore_missing_imports = True
[mypy-pytest]
ignore_missing_imports = True
[mypy-_pytest.*]
ignore_missing_imports = True
[mypy-setuptools_scm]
ignore_missing_imports = True
[mypy-uvicorn]
ignore_missing_imports = True