-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (101 loc) · 2.75 KB
/
pyproject.toml
File metadata and controls
119 lines (101 loc) · 2.75 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wagtail-spa-integration"
version = "3.3.0"
description = "Tools for using Wagtail API with JavaScript single page apps"
classifiers = [
"Development Status :: 5 - Production/Stable",
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Wagtail',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"wagtail (>=7.0)",
"Django (>=5.2)",
"wagtail-headless-preview (>=0.8,<0.9)",
"django-filter (>=25.2,<26)",
]
requires-python = ">=3.11"
[project.license]
text = "ISC"
[[project.authors]]
name = "thelab"
email = "thelabdev@thelab.co"
[dependency-groups]
dev = [
"mypy (==1.19.1)",
"django-cors-headers ==4.9.0",
"django-stubs (==5.2.9)",
"djangorestframework-stubs (==3.16.8)",
"tox>=4.50.2",
"tox-uv>=1.33.4",
"ruff (>=0.15.7)",
"isort (>=8.0.1)",
"coverage>=7.13.5",
]
[tool.hatch.build.targets.wheel]
packages = ["wagtail_spa_integration"]
[[tool.uv.index]]
name = "thelabnyc"
url = "https://gitlab.com/api/v4/groups/269576/-/packages/pypi/simple"
explicit = true
[tool.commitizen]
name = "cz_conventional_commits"
annotated_tag = true
gpg_sign = true
tag_format = "v$version"
update_changelog_on_bump = true
changelog_merge_prerelease = true
version_provider = "pep621"
version_scheme = "pep440"
version_files = ["pyproject.toml:version"]
pre_bump_hooks = ["pre-commit run --all-files || true"]
post_bump_hooks = ["git push origin master $CZ_POST_CURRENT_TAG_VERSION"]
[tool.mypy]
python_version = "3.10"
plugins = ["mypy_django_plugin.main"]
# Strict mode, see mypy --help
warn_unused_configs = true
# disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
show_error_codes = true
# Not turned on by strict
strict_equality = true
[[tool.mypy.overrides]]
module = "*.tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "wagtail.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "django_filters.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "wagtail_headless_preview.models.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sandbox.models"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "sandbox.settings.dev"
[tool.isort]
profile = "black"
from_first = true
[tool.ruff.lint.isort]
from-first = true