-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
145 lines (127 loc) · 2.79 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
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "jemail"
dynamic = ["version"]
description = "Django app to store emails in db"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Konstantin Alekseev", email = "[email protected]" },
]
keywords = [
"email",
"django",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"django>=4.2",
"django-anymail",
"html2text",
]
[project.optional-dependencies]
dev = [
"django-stubs",
"mypy",
"pdbpp",
"pre-commit",
"ruff",
]
test = [
"pytest",
"pytest-cov",
"pytest-django",
]
[project.urls]
Repository = "https://github.com/kotify/jemail"
Changelog = "https://github.com/kotify/jemail/blob/main/CHANGELOG.md"
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[tool.hatch.build.targets.sdist]
include = ["/src"]
[tool.hatch.build.targets.wheel]
packages = ["src/jemail"]
[tool.ruff]
src = ["src"]
target-version = "py39"
[tool.ruff.lint]
select = [
'B',
'C',
'E',
'F',
'N',
'W',
'UP',
'RUF',
'INP',
'I',
'TCH',
]
ignore = [
'E501',
'B904',
'B905',
'RUF012',
]
extend-safe-fixes = ["TCH"]
[tool.pytest.ini_options]
addopts = "-p no:doctest --cov=jemail --cov-branch --ds=tests.settings"
django_find_project = false
pythonpath = "."
filterwarnings = [
"ignore:CheckConstraint.check is deprecated.*",
]
[tool.pyright]
include = ["src", "tests"]
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
disallow_untyped_defs = true
check_untyped_defs = true
ignore_missing_imports = true
implicit_reexport = true
strict_equality = true
warn_unreachable = true
show_error_codes = true
no_implicit_optional = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[tool.django-stubs]
django_settings_module = "tests.settings"
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"if settings.DEBUG:",
"if settings.CI:",
"raise AssertionError",
"raise NotImplementedError",
'class .*\\bProtocol\):',
"@(abc\\.)?abstractmethod",
]