-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
109 lines (99 loc) · 2.49 KB
/
pyproject.toml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
# uv section
[project]
name = "sit_backend"
version = "0.1.0"
description = ""
authors = [{ name="Sven Hoyer", email="sven.hoyer@hotmail.com" }]
readme = "README.md"
requires-python = ">3.10"
dependencies = [
"django",
"djangorestframework",
"channels[daphne]",
"djangorestframework-simplejwt",
"djangochannelsrestframework",
"django-channels-jwt-auth-middleware",
"django-filter",
"django-cors-headers",
"numpy",
"channels-redis",
"pyswarms",
"scipy",
"pandas",
"matplotlib",
]
[project.optional-dependencies]
dev = [
"black",
"pylint",
"mypy",
"django-stubs",
"pylint-django",
"ipykernel",
]
test = [
"pytest",
"pytest-asyncio",
"pytest-django",
]
# Style and Linting Configuration
#black section
[tool.black]
line-length=79
force-exclude = '''
/(
| ^.*\b(migrations)\b.*$
)/
'''
#isort section
[tool.isort]
profile = "black"
known_first_party=["apps"]
known_django=["django"]
known_wagtail=["wagtail", "modelcluster"]
skip=["migrations",".git","__pycache__","LC_MESSAGES","locale","build","dist",".github","wagtail","threadedcomments"]
blocked_extensions=["rst","html","js","svg","txt","css","scss","png","snap","tsx","sh"]
sections=["FUTURE","STDLIB","DJANGO","WAGTAIL","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
default_section="THIRDPARTY"
import_heading_firstparty = "Library"
import_heading_future = "Futures"
import_heading_local = "Local"
import_heading_stdlib = "Standard Library"
import_heading_thirdparty = "Third Party"
include_trailing_comma=true
lines_between_types=1
lines_after_imports=2
multi_line_output=3
line_length = 79
#Pylint section
[tool.pylint]
[tool.pylint.main]
# Disable
# R0903: Too few public methods,
# W0621: Redefining name from outer scope,
# W1203: Using the global statement,
# C0114: Missing module docstring,
# C0115: Missing class docstring,
# C0116: Missing function or method docstring
# I1101: Module has no member
disable = ['I1101', 'C0114', 'C0115', 'C0116', 'W1203', 'W0621', 'R0903']
ignore="manage.py"
ignore-paths='.*/migrations/*, ./config/*, .*/tests/*'
max-attributes=20
max-locals=20
fail-under=9.5
[tool.pylint.logging]
logging-format-style = "new"
# MyPy section
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
[tool.django-stubs]
django_settings_module = "config.settings"
#Pytest section
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = 'config.settings.test'
python_files = ['tests.py', 'test_*.py']
filterwarnings = 'ignore::DeprecationWarning'