-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (82 loc) · 2.16 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (82 loc) · 2.16 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
[project]
name = "cinereserve-backend"
version = "0.1.0"
description = ""
authors = [
{name = "buguno",email = "brunnodesouzabezerra@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.13,<4.0"
dependencies = [
"django (>=6.0.3,<7.0.0)",
"djangorestframework (>=3.16.1,<4.0.0)",
"python-dotenv (>=1.2.2,<2.0.0)",
"djangorestframework-simplejwt (>=5.5.1,<6.0.0)",
"drf-yasg (>=1.21.15,<2.0.0)",
"psycopg[binary] (>=3.3.3,<4.0.0)",
"django-redis (>=6.0.0,<7.0.0)",
"redis (>=7.3.0,<8.0.0)",
"celery (>=5.6.2,<6.0.0)",
"gunicorn (>=25.1.0,<26.0.0)",
"whitenoise (>=6.12.0,<7.0.0)"
]
[tool.poetry]
package-mode = false
[tool.poetry.group.dev.dependencies]
pytest = "^9.0.2"
pytest-cov = "^7.0.0"
taskipy = "^1.14.1"
ruff = "^0.15.6"
typos = "^1.44.0"
pytest-django = "^4.12.0"
faker = "^40.11.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 79
extend-exclude = ['migrations']
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
ignore = ['PLR6301']
[tool.ruff.lint.per-file-ignores]
"manage.py" = ['PLC0415']
"*/tests/*.py" = ['PLR2004', 'PLR0913', 'PLR0917']
"*/settings.py" = ['E501']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest.ini_options]
pythonpath = "."
addopts = "-p no:warnings"
DJANGO_SETTINGS_MODULE = "core.settings"
python_files = ["test_*.py", "*_test.py"]
[tool.coverage.run]
omit = [
"manage.py",
"conftest.py",
"*/settings.py",
"*/asgi.py",
"*/wsgi.py",
"*/migrations/*",
"*/tests/*",
]
[tool.coverage.report]
skip_empty = true
show_missing = true
[tool.taskipy.tasks]
pre_lint = 'typos'
lint = 'ruff check'
pre_format = 'ruff check --fix'
format = 'ruff format'
run = 'python manage.py runserver'
migrations = 'python manage.py makemigrations'
migrate = 'python manage.py migrate'
superuser = 'python manage.py createsuperuser'
test = "pytest -q"
test_cov = "pytest --cov=. --cov-report=term-missing --cov-report=html"
test_movies = "pytest movies/tests -q"
test_showtimes = "pytest showtimes/tests -q"
test_tickets = "pytest tickets/tests -q"
test_users = "pytest users/tests -q"