-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (147 loc) · 4.38 KB
/
pyproject.toml
File metadata and controls
163 lines (147 loc) · 4.38 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[project]
name = "django-email-learning"
version = "0.3.0"
description = "A platform for creating and delivering learning materials via email within a Django application. It provides tools for content management, user role-based administration, and scheduler integration for automated content delivery."
authors = [
{name = "Payam Najafizadeh",email = "payam.nj@gmail.com"}
]
urls = {repository = "https://github.com/AvaCodeSolutions/django-email-learning"}
license = "BSD-3-Clause"
readme = "README.md"
requires-python = ">=3.12,<4.0"
dependencies = [
"cryptography (>=46.0.3,<47.0.0)",
"pillow (>=12.0.0,<13.0.0)",
"pydantic (>=2.12.4,<3.0.0)",
"pyjwt (>=2.10.1,<3.0.0)",
"qrcode (>=8.2,<9.0)",
"google-auth-oauthlib (>=1.3.0,<2.0.0)",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Education",
]
license-files = ["LICENSE*"]
[project.optional-dependencies]
ai = ["openai"]
[dependency-groups]
dev = [
"django (>=5.0); python_version < '3.12'",
"django (>=6.0,<7.0); python_version >= '3.12'",
"django-vite (>=3.1.0,<4.0.0)",
"ruff (>=0.15.0,<0.16.0)",
"mypy (>=1.18.2,<2.0.0)",
"pytest (>=9.0.1,<10.0.0)",
"pytest-django (>=4.11.1,<5.0.0)",
"django-stubs (>=6.0.0,<6.1.0)",
"django-cors-headers (>=4.9.0,<5.0.0)",
"pre-commit (>=4.4.0,<5.0.0)",
"bandit (>=1.8.6,<2.0.0)",
"pytest-cov (>=7.0.0,<8.0.0)",
"freezegun (>=1.5.5,<2.0.0)",
"python-json-logger (>=4.0.0,<5.0.0)",
"python-dotenv[cli] (>=1.2.1,<2.0.0)",
"types-qrcode (>=8.2.0.20250914,<9.0.0.0)",
"openai (>=2.26.0,<3.0.0)"
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.setuptools]
packages = ["django_email_learning"]
include-package-data = true
[tool.setuptools.package-data]
django_email_learning = [
"templates/**/*",
"static/**/*",
"locale/**/*",
"migrations/**/*",
]
[tool.mypy]
python_version = "3.11"
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_unreachable = true
exclude = [
"tests/",
"docs/",
]
plugins = [
"mypy_django_plugin.main"
]
[tool.django-stubs]
django_settings_module = "django_service.settings"
[tool.pre-commit]
default_language_version = {python = "python3.12"}
[tool.ruff.format]
# Ensure consistent formatting for pre-commit
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.bandit]
exclude_dirs = ["tests", "migrations"]
skips = ["B101", "B601"] # Skip assert statements and shell injection for subprocess
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "django_service.settings"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--tb=short",
"--cov=django_email_learning", # Coverage for your package
"--cov-report=term-missing", # Show missing lines in terminal
"--cov-report=html:htmlcov", # Generate HTML report
"--cov-report=xml", # Generate XML report (for CI)
"--cov-fail-under=80", # Fail if coverage below 80%
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
testpaths = ["tests"]
[tool.coverage.run]
source = ["django_email_learning"]
omit = [
"*/migrations/*",
"*/tests/*",
"*/venv/*",
"*/__pycache__/*",
"manage.py",
"*/settings/*",
"*/wsgi.py",
"*/asgi.py",
"django_service/*", # Exclude Django project files
]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
show_missing = true
skip_covered = false
[tool.coverage.html]
directory = "htmlcov"