-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (70 loc) · 1.39 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
[tool.poetry]
name = "todo-django"
version = "0.1.0"
description = ""
authors = ["lealre <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "3.12.*"
django = "^5.1.1"
psycopg2-binary = "^2.9.10"
[tool.poetry.group.dev.dependencies]
ruff = "^0.6.9"
pytest = "^8.3.3"
pytest-django = "^4.9.0"
taskipy = "^1.13.0"
pytest-cov = "^5.0.0"
parameterized = "^0.9.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 79
extend-exclude = [
'project/settings.py',
'migrations',
'manage.py'
]
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PL', 'PT']
ignore = ['PT009', 'PT027' ]
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = 'project.settings'
python_files = [
'test.py',
'tests.py',
'test_*.py',
'tests_*.py',
'*_test.py',
'*_tests.py'
]
addopts = [
"--doctest-modules",
"--strict-markers",
# "-rP",
"-p no:warnings"
]
markers = [
"slow: Run tests that are slow",
"fast: Run fast tests"
]
[tool.coverage.run]
include = [
"todo/*",
"users/*",
]
omit = [
"*/migrations/*",
"*/tests/*",
"*/__init__.py"
]
[tool.taskipy.tasks]
pre_test = 'task lint'
test = 'pytest --cov -v'
post_test = 'coverage html'
lint = 'ruff check . && ruff check . --diff'
format = 'ruff check . --fix && ruff format .'