forked from OpenSlides/openslides-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
96 lines (73 loc) · 2.05 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# The following sections must be kept in sync with global/meta/dev/setup.cfg
[autoflake]
verbose = true
in-place = true
remove-all-unused-imports = true
ignore-init-module-imports = true
recursive = true
[isort]
include_trailing_comma = true
multi_line_output = 3
force_grid_wrap = 0
use_parentheses = True
line_length = 88
[flake8]
extend-ignore = E203,E501
[mypy]
disallow_untyped_defs = true
exclude = tests/system/migrations
namespace_packages = true
[mypy-datastore.*]
disallow_untyped_defs = false
check_untyped_defs = true
[tool:pytest]
testpaths = tests/
filterwarnings =
# ignore warnings from smtp-server while testing emails
ignore:Requiring AUTH while not requiring TLS can lead to security vulnerabilities!:UserWarning
# ignore OTel Flask deprecation warning until it is updated
ignore:The '__version__' attribute is deprecated and will be removed in Flask 3.1:DeprecationWarning
# ignore irrelevant BeautifulSoup warning
ignore:The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.:UserWarning
[coverage:run]
omit =
openslides_backend/__main__.py
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplementedError
@abstractmethod
^\s*...$
fail_under = 96
omit =
tests/*
migrations/*
[coverage:html]
directory = openslides_backend/htmlcov
[mypy-fastjsonschema]
ignore_missing_imports = true
[mypy-fastjsonschema.exceptions]
ignore_missing_imports = true
[mypy-roman]
ignore_missing_imports = true
[mypy-gunicorn.*]
ignore_missing_imports = true
[mypy-werkzeug.wrappers.json]
ignore_missing_imports = true
[mypy-simplejson.errors]
ignore_missing_imports = true
[mypy-dependency_injector]
ignore_missing_imports = true
[mypy-pypdf.*]
ignore_missing_imports = true
[mypy-pytest]
ignore_missing_imports = true
[mypy-authlib.*]
ignore_missing_imports = true
[mypy-aiosmtpd]
ignore_missing_imports = true
# needed if datastore is used locally
[mypy-redis]
ignore_missing_imports = true
[mypy-psycopg2.*]
ignore_missing_imports = true