-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
148 lines (133 loc) · 2.87 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[tool.poetry]
name = "adaptive-hockey-federation"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^4.2.6"
gunicorn = "^21.2.0"
openpyxl = "^3.1.2"
types-openpyxl = "^3.1.0.24"
openpyxl-stubs = "^0.1.25"
click = "^8.1.7"
wrapt = "^1.16.0"
django-phonenumber-field = {extras = ["phonenumbers"], version = "^7.2.0"}
pytest-django = "^4.7.0"
psycopg2-binary = "2.9.9"
django-environ = "^0.11.2"
django-extensions = "^3.2.3"
pillow = "^10.2.0"
types-python-dateutil = "^2.8.19.20240106"
pytest-subtests = "^0.12.1"
djangorestframework = "^3.15.1"
django-debug-toolbar = "^4.4.6"
python-dateutil = "^2.9.0.post0"
[tool.poetry.group.dev.dependencies]
setuptools = "^70.0.0"
ruff = "^0.4.5"
pre-commit = "3.5.0"
django-debug-toolbar = "^4.2.0"
django-extensions = "^3.2.3"
factory-boy = "^3.3.0"
types-Pillow = "*"
opencv-python = "^4.10.0.84"
fastapi = {extras = ["standard"], version = "^0.112.0"}
[tool.poetry.group.test.dependencies]
django-stubs = "^4.2.4"
[tool.poetry.group.parser.dependencies]
python-docx = "^1.0.1"
click = "^8.1.7"
requests = "^2.31.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py311"
exclude = [
"config",
"*migrations/*",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 79
indent-width = 4
output-format = "grouped"
[tool.ruff.lint]
select = [
# pep8-naming
"N",
#pyflakes
"F",
#pycodestyle
"E",
"W",
#mccabe
"C90",
#isort
"I",
#pydocstyle
"D",
#flake8-bugbear
"B",
#flake8-commas
"COM",
#flake8-django
"DJ",
#flake8-print
"T20",
#flake8-pie
"PIE",
#flake8-quotes
"Q",
#eradicate
"ERA",
#flake8-type-checking
"TCH",
]
ignore = ["D100", "D103", "T201", "D104", "D106", "D203", "B012", "B904", "COM819", "D212", "I001", "ERA001", "N999"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
quote-style = "double"
[tool.ruff.lint."flake8-quotes"]
inline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"settings*" = ["E501", "F405"]
[tool.django-stubs]
django_settings_module = "adaptive_hockey_federation.core.config.dev_settings"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "adaptive_hockey_federation.core.config.test_settings"
python_files = ["*_test.py"]
console_output_style = "progress"
verbosity_test_cases = 2