-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (87 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
98 lines (87 loc) · 1.8 KB
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
[tool.poetry]
name = "course-django"
version = "0.1.0"
description = ""
authors = ["marcustas <stas.chernov@casafari.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "^4.2.6"
faker = "^24.9.0"
django-modeltranslation = "^0.18.11"
pillow = "^10.3.0"
pydantic = "^2.7.1"
djangorestframework = "^3.15.1"
drf-yasg = "^1.21.7"
djangorestframework-simplejwt = "^5.3.1"
coverage = "^7.5.1"
factory-boy = "^3.3.0"
setuptools = "^70.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
extend-exclude = [
"*/__init__.py",
"*/migrations"
]
line-length = 120
ignore = [
"T201", # Ignore print only for learn project, don't use on a real one
"ANN003",
"ANN101",
"ANN102",
"ANN204",
"ANN401",
"D105",
"D107",
"D200",
"D204",
"D413",
"F722",
"B904",
"Q000",
"Q003",
"F841", # Only for course examples!!!
]
select = [
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"ERA", # eradicate
"T20", # flake8-print
"Q", # flake8-quotes
"I", # isort
"N", # pep8-naming
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
]
[tool.ruff.pep8-naming]
classmethod-decorators = [
"classmethod",
"pydantic.field_validator",
"pydantic.model_validator",
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
[tool.ruff.isort]
split-on-trailing-comma = true
force-wrap-aliases = true
combine-as-imports = true
lines-after-imports = 2
[tool.coverage.run]
omit = [
"*/tests/*",
"*/migrations/*",
"*/settings.py",
"*/urls.py",
"*/wsgi.py",
"*/asgi.py",
]
[tool.coverage.report]
fail_under = 50
show_missing = true
skip_covered = true