-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (91 loc) · 2.89 KB
/
pyproject.toml
File metadata and controls
109 lines (91 loc) · 2.89 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
[build-system]
requires = ["setuptools", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
name = "dj-emailuser"
description = "A simple Django app with users identified by email instead of username."
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
{ name = "Solve42", email = "eugen.massini@solve42.de" },
{ name = "Eugen Massini" },
]
license = "LicenseRef-BSD-3-Clause"
license-files = [ "LICENSE" ]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
requires-python = ">=3.12"
dynamic = ["dependencies","optional-dependencies","version"]
[project.urls]
Homepage = "https://github.com/eugenma/django-emailuser"
[tool.setuptools]
include-package-data = true
# We rely on dynamic requirements, since requirements.txt is easier to handle in Dockerfile
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.dynamic.optional-dependencies]
dev = {file = ["requirements.dev.txt"]}
drf = {file = ["requirements.drf.txt"]}
[tool.setuptools.packages.find]
where = ["src/"]
[tool.setuptools_scm]
version_file = "src/email_user/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "node-and-date"
fallback_version = "0.0.0"
[tool.black]
line-length = 120
[tool.mypy]
plugins = [
"mypy_django_plugin.main"
]
mypy_path = ["src"]
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = false
#disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
#warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
# For Django
disable_error_code = ["type-arg"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "--tb=short -ra -q -s"
log_cli = true
log_cli_level = "INFO"
[mypy.plugins.django-stubs]
django_settings_module = "email_user.tests.settings"
strict_settings = true
strict_model_abstract_attrs = true
[tool.django-stubs]
django_settings_module = "email_user.tests.settings"
strict_settings = true
strict_model_abstract_attrs = true
[[tool.mypy.overrides]]
module = ["email_user.models.*", "email_user.serializers.*"]
disable_error_code = ["no-untyped-call", "var-annotated"]
[[tool.mypy.overrides]]
module = ["email_user.tests.*"]
disable_error_code = ["no-untyped-call"]