forked from sergiodantasz/SEMADEC-Hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (91 loc) · 2.17 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tool.poetry]
name = "semadec-hub"
version = "0.1.0"
description = "Projeto desenvolvido com a finalidade de facilitar o gerenciamento da SEMADEC no IFRN Campus Currais Novos."
authors = [
"Joamerson Islan <[email protected]>, Sérgio Dantas <[email protected]>",
]
package-mode = false
license = "MIT"
readme = "README.md"
repository = "https://github.com/sergiodantasz/SEMADEC-Hub"
[tool.poetry.dependencies]
python = "~3.12"
Django = "~5.0.1"
Pillow = "~10.3.0"
social-auth-app-django = "~5.4.0"
django-environ = "~0.11.2"
django-summernote = "~0.8.20.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.4"
pytest-django = ">=4.8.0"
coverage = ">=7.4.0"
ruff = ">=0.1.14"
factory-boy = ">=3.3.0"
faker = ">=22.7.0"
django-debug-toolbar = ">=4.3.0"
django-browser-reload = "^1.13.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings"
python_files = [
"test.py",
"test_*.py",
"*_test.py",
"tests.py",
"tests_*.py",
"testing/python/*.py",
]
addopts = [
"--doctest-modules",
"--strict-markers",
"-rP",
"--import-mode=importlib",
]
markers = ["slow", "fast"]
filterwarnings = ["error", "ignore::pytest.PytestCollectionWarning"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = ["F401"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.coverage.run]
branch = true
omit = [
"*/venv/*",
"*/test*.py",
"*/conftest.py",
"*/factory.py",
"**/factories.py",
"manage.py",
"core/*.py",
"utils/*.py",
"**/__init__.py",
"*/migrations/*.py",
"**/scripts/*.py"
]
[tool.coverage.report]
exclude_also = [
"def __init__",
"super().__init__",
"def save",
"if TYPE_CHECKING",
"class UserManager",
"def user_data",
]
[tool.coverage.html]
directory = "assets/coverage"