-
Notifications
You must be signed in to change notification settings - Fork 263
/
Copy pathpyproject.toml
124 lines (109 loc) · 3.26 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
[project]
name = "django-modeltranslation"
dynamic = ["version"]
description = "Translates Django models using a registration approach."
readme = "README.rst"
authors = [
]
maintainers = [
]
license = "BSD-3-Clause"
requires-python = "<4,>=3.9"
dependencies = [
"Django>=4.2",
"typing-extensions>=4.0.1; python_version < \"3.11\"",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Framework :: Django",
]
[project.urls]
"Homepage" = "https://github.com/deschler/django-modeltranslation"
"Source" = "https://github.com/deschler/django-modeltranslation"
"Documentation" = "https://django-modeltranslation.readthedocs.org/en/latest"
"Mailing List" = "http://groups.google.com/group/django-modeltranslation"
"Changelog" = "https://github.com/deschler/django-modeltranslation/blob/master/CHANGELOG.md"
[dependency-groups]
dev = [
"ruff",
"pdbpp",
"parameterized",
"pytest-cov",
"pytest",
"pytest-sugar",
"pytest-django",
"django-stubs<6.0.0,>=5.0.2",
"mypy",
"build",
"pillow",
]
lsp = ["python-lsp-server[rope]", "pylsp-mypy"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
ignore = [
"E501", # line length is handled by formatter
]
[tool.ruff.lint.pyflakes]
extend-generics = [
"django.db.models.ForeignKey",
"django.db.models.OneToOneField",
"django.db.models.ManyToManyField",
"django.db.models.Manager",
"django.db.models.manager.RelatedManager",
]
[tool.mypy]
python_version = "3.9"
incremental = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
show_error_context = true
exclude = ['tests/migrations/', 'tests/urls.py']
disable_error_code = ["method-assign"]
plugins = ["mypy_django_plugin.main"]
[[tool.mypy.overrides]]
module = ["modeltranslation.fields"]
disable_error_code = ["attr-defined", "has-type", "misc"]
[[tool.mypy.overrides]]
module = ["modeltranslation.admin"]
disable_error_code = ["override", "attr-defined"]
[[tool.mypy.overrides]]
module = ["modeltranslation.translator"]
disable_error_code = ["override", "attr-defined"]
[[tool.mypy.overrides]]
module = ["modeltranslation.manager"]
disable_error_code = ["override", "attr-defined", "return-value", "misc"]
[tool.django-stubs]
django_settings_module = "modeltranslation.tests.settings"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = ["modeltranslation/**"]
[tool.hatch.build.targets.wheel]
packages = ["modeltranslation"]
[tool.hatch.build.targets.wheel.package-data]
modeltranslation = [
"static/modeltranslation/css/*.css",
"static/modeltranslation/js/*.js",
"py.typed",
]
[tool.hatch.build.targets.sdist]
include = [
"modeltranslation/**/*",
"README.rst",
]
[tool.hatch.version]
source = "vcs"