-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (142 loc) · 4.17 KB
/
pyproject.toml
File metadata and controls
158 lines (142 loc) · 4.17 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
requires = ["setuptools>=80.2"]
build-backend = "setuptools.build_meta"
[project]
name = "django-tomselect"
version = "2026.4.1"
description = "Django autocomplete widgets and views using Tom Select"
authors = [{ name = "Jack Linke", email = "jacklinke@gmail.com" }]
license = "MIT"
readme = "README.md"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
]
requires-python = ">=3.11,<4.0"
dependencies = [
"django>=4.2.29",
]
keywords = [
"django",
"autocomplete",
"tomselect",
"widget",
"forms",
"views",
"select",
"multiselect",
]
[project.urls]
Source = "https://github.com/OmenApps/django-tomselect"
Documentation = "https://django-tomselect.readthedocs.io/en/latest/"
Issues = "https://github.com/OmenApps/django-tomselect/issues"
Changelog = "https://github.com/OmenApps/django-tomselect/releases"
[project.optional-dependencies]
dev = [
"bandit>=1.9.3",
"coverage[toml]>=7.8.2",
"darglint>=1.8.1",
"django-extensions>=4.1",
"django-htmx>=1.27.0",
"flake8-bugbear>=24.12.12",
"flake8-docstrings>=1.7.0",
"flake8-rst-docstrings>=0.3.1",
"flake8>=7.2.0",
"furo>=2024.8.6",
"linkify-it-py>=2.0.3",
"myst-parser>=4.0.1",
"nox>=2025.11.12",
"pep8-naming>=0.15.1",
"playwright>=1.54.0",
"pre-commit-hooks>=6.0.0",
"pre-commit>=4.5.1",
"Pygments>=2.19.1",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-django>=4.11.1",
"pytest>=8.3.5",
"python-environ>=0.4.54",
"pyupgrade>=3.21.2",
"ruff>=0.14.13",
"pip-audit>=2.7.3",
"sphinx-autobuild>=2024.10.3",
"sphinx-click>=6.0.0",
"sphinx>=8.2.3",
"Werkzeug>=3.1.3",
"xdoctest[colors]>=1.3.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
django_tomselect = [
"templates/**/*.html",
"static/**/*.js",
"static/**/*.css",
"static/**/*.map",
"locale/**/*.mo",
"locale/**/*.po",
"py.typed",
]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["example_project", "*/example_project"]
[tool.coverage.run]
branch = true
parallel = true
source_pkgs = ["django_tomselect"]
[tool.coverage.report]
show_missing = true
fail_under = 80
omit = [".nox/*", "example_project/*", "**/migrations/*", "**/__init__.py"]
[tool.pytest.ini_options]
log_cli_level = "INFO"
DJANGO_SETTINGS_MODULE = "example_project.settings"
python_files = ["*test_*.py", "*_test.py", "example_project/*.py"]
log_cli = true
asyncio_default_fixture_loop_scope = "function"
markers = [
"playwright: browser-level tests that require Playwright and an installed browser",
]
[tool.ruff]
src = ["src"]
target-version = "py311"
line-length = 120
exclude = ["example_project"]
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E",
"W", # pycodestyle
"F", # flake8
"I", # isort
]
ignore = [
"D1", # D1: Missing docstring error codes (because not every function and class has a docstring)
"D203", # D203: 1 blank line required before class docstring (conflicts with D211 and should be disabled, see https://github.com/PyCQA/pydocstyle/pull/91)
"D205", # D205: 1 blank line required between summary line and description
"D212", # D212: Multi-line docstring summary should start at the first line
]
[tool.ruff.lint.per-file-ignores]
# Long lines in docstring examples that can't be wrapped
"src/django_tomselect/widgets.py" = ["E501", "W505"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.pycodestyle]
max-doc-length = 120