-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (117 loc) · 3.6 KB
/
pyproject.toml
File metadata and controls
129 lines (117 loc) · 3.6 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
[project]
name = "django-scalar"
version = "0.2.0"
description = "Publish your Django API docs with Scalar"
readme = "README.md"
authors = [
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = [
"drf-spectacular >= 0.28.0",
"django-filter >= 24",
"djangorestframework >= 3.15.0",
]
[project.urls]
Homepage = "https://www.example.com/"
Source = "https://github.com/oerd/django-scalar"
[dependency-groups]
test = [
"mypy==1.15.0", # https://github.com/python/mypy
"django-stubs[compatible-mypy]==5.2.0", # https://github.com/typeddjango/django-stubs
"pytest==8.3.5", # https://github.com/pytest-dev/pytest
"pytest-mock==3.14.0", # https://github.com/pytest-dev/pytest-mock/
"pytest-sugar==1.0.0", # https://github.com/Frozenball/pytest-sugar
"djangorestframework-stubs==3.15.2", # https://github.com/typeddjango/djangorestframework-stubs
"pytest-django==4.11.1", # https://github.com/pytest-dev/pytest-django
"beautifulsoup4==4.12.3", # https://www.crummy.com/software/BeautifulSoup/
]
qa = [
"pre-commit==4.1.0", # https://github.com/pre-commit/pre-commit
"ruff==0.11.7", # https://github.com/astral-sh/ruff
"coverage==7.6.12", # https://github.com/nedbat/coveragepy
"django-coverage-plugin==3.1.0", # https://github.com/nedbat/django_coverage_plugin
"djlint==1.36.4", # https://github.com/Riverside-Healthcare/djLint
]
build = [
"hatchling>=1.26.3",
]
all = [
{include-group = "test"},
{include-group = "qa"},
{include-group = "build"},
]
[build-system]
requires = ["hatchling >= 1.26.3"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
addopts = "--ds=tests.settings"
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
]
include = ["tests/**"]
omit = ["*/tests/*, */static/*"]
plugins = ["django_coverage_plugin"]
# ==== mypy ====
[tool.mypy]
python_versions = ["3.10", "3.11", "3.12", "3.13"]
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main",
]
[[tool.mypy.overrides]]
# Django migrations should not produce any errors:
module = "*.migrations.*"
ignore_errors = true
[tool.django-stubs]
django_settings_module = "tests.settings"
# ==== djLint ====
[tool.djlint]
use_gitignore=true
blank_line_after_tag = "load,extends"
close_void_tags = true
format_css = true
format_js = true
# TODO: remove T002 when fixed https://github.com/djlint/djLint/issues/687
ignore = "H006,H030,H031,T002"
include = "H017,H035"
indent = 2
max_line_length = 119
profile = "django"
extend_exclude = "src/django_scalar/templates/django_scalar/scalar.html"
[tool.djlint.css]
indent_size = 2
[tool.djlint.js]
indent_size = 2
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true