-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml.backup
111 lines (96 loc) · 2.71 KB
/
pyproject.toml.backup
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
110
111
# Poetry section
[tool.poetry]
name = "sit-backend"
version = "0.1.0"
description = ""
authors = ["Sven <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
django = "^5.0.1"
djangorestframework = "^3.15.2"
channels = {extras = ["daphne"], version = "^4.0.0"}
djangorestframework-simplejwt = "^5.3.1"
djangochannelsrestframework = "^1.2.0"
django-channels-jwt-auth-middleware = "^1.0.0"
django-filter = "^24.2"
django-cors-headers = "^4.4.0"
numpy = "^1.26.3"
channels-redis = "^4.2.0"
pyswarms = "^1.3.0"
scipy = "^1.13.0"
jupyter = "^1.0.0"
pandas = "^2.2.2"
matplotlib = "^3.9.1"
[tool.poetry.group.test.dependencies]
pytest = "^8.2.0"
pytest-asyncio = "^0.23.3"
pytest-django = "^4.7.0"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
pylint = "^3.0.3"
mypy = "^1.8.0"
django-stubs = "^5.0.0"
pylint-django = "^2.5.5"
ipykernel = "^6.29.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# 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'