-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.cfg
54 lines (44 loc) · 1.22 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
[flake8]
linters=pycodestyle,pyflakes
exclude=
migrations,
compiled_nlp_classes,
working,
max-line-length=79
# Not compatible with Black and not PEP8 apparently
# E203: Whitespace before ':'
extend-ignore = E203
[tool:pytest]
addopts = --strict-markers --tb=short --reuse-db
python_classes = *Tests
python_files = *tests.py
norecursedirs =
markers =
filterwarnings =
DJANGO_SETTINGS_MODULE = crate_anon.crateweb.config.test_settings
# There are more tests in
testpaths =
crate_anon
[mypy]
# MyPy is a static type checker. It will not execute the code!
# pip install mypy sqlalchemy-stubs django-stubs django-restframework-stubs
# Third party stubs not in typeshed go here
# They can be generated with stubgen and modified
mypy_path = stubs
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main,
sqlmypy
no_strict_optional = True
allow_redefinition = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy.plugins.django-stubs]
django_settings_module = crate_anon.crateweb.config.settings
# From installer-requirements.txt
[mypy-prompt_toolkit.*]
ignore_missing_imports = True
[mypy-python_on_whales.*]
ignore_missing_imports = True
[mypy-semantic_version.*]
ignore_missing_imports = True