-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpyproject.toml
70 lines (63 loc) · 1.43 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
[tool.poetry]
name = "ebs-python-internship-test"
version = "0.1.0"
description = ""
authors = ["Daniel Cuznetov <daniel.cuznetov@ebs-integrator.com>"]
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "~3.12"
django = "~4.2"
djangorestframework = "~3.15"
djangorestframework-simplejwt = "~5.3"
django-cors-headers = "~4.4"
drf-spectacular = "~0.27"
pre-commit = "~3.8"
ruff = "~0.6"
coverage = "~7.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"ASYNC", # flake8-async
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"BLE", # flake8-blind-except
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"FIX", # flake8 - fix me
"N", # pep8-naming
"UP", # pyupgrade
]
ignore = [
"ISC001", # Disabled to avoid unexpected behaviour on `ruff format .`
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.coverage.run]
omit = [
"*/tests.py",
"*/__init__.py",
"*/admin.py",
"*/apps.py",
"*/urls.py",
"*/wsgi.py",
"*/asgi.py",
"*/settings.py",
"*/manage.py",
"*/celery.py",
"*/migrations/*",
]