-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (71 loc) · 1.66 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
[project]
name = "erp-django-api"
version = "0.1.0"
description = "ERP API with Python and Django"
authors = [
{name = "mateus-dev-me",email = "mateusmartinsipu2@gmail.com"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"django (==4.2)",
"djangorestframework (>=3.15.2,<4.0.0)",
"markdown (>=3.7,<4.0)",
"django-filter (>=24.3,<25.0)",
"django-cors-headers (>=4.6.0,<5.0.0)",
"python-dotenv (>=1.0.1,<2.0.0)",
"psycopg2-binary (>=2.9.10,<3.0.0)",
"djangorestframework-simplejwt (>=5.4.0,<6.0.0)"
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
package-mode = false
[tool.poetry.group.dev.dependencies]
django-extensions = "^3.2.3"
ruff = "^0.9.4"
ipdb = "^0.13.13"
pre-commit = "^4.1.0"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.dev"
pythonpath = "."
python_files = ["test_*.py", "*_test.py"]
addopts = ["-p no:warning", "--cov=."]
[tool.coverage.run]
omit = [
"__init__.py",
"manage.py",
"urls.py",
"apps.py",
"**/config/*",
"**/migrations/*",
"conftest.py",
"**/tests/*",
]
[tool.ruff]
extend-exclude = [
".venv",
"data",
"migrations",
"config",
"manage.py",
".ruff_cache",
"tests",
]
line-length = 79
indent-width = 4
[tool.ruff.lint]
ignore = ["E501", "PLR0913", "PLR6301", "PLR0917", "PLR2004"]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.poetry.group.test.dependencies]
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
pytest-django = "^4.9.0"
faker = "^35.2.0"
factory-boy = "^3.3.1"