-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
141 lines (123 loc) · 3.77 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-crispy-tableselect"
dynamic = ["version"]
readme = "README.md"
description = "Crispy layout object for selecting rows in a table"
requires-python = ">=3.9"
license = "MIT"
keywords = ["django", "crispy-forms"]
authors = [{ name = "Storm B. Heg", email = "storm@stormbase.digital" }]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
dependencies = [
"django>=4.2",
"django-tables2>=2.4,<3",
"django-crispy-forms>=2.0,<3.0"
]
[project.urls]
# TODO: documentation link
# Documentation = "https://github.com/Stormbase/django-crispy-tableselect/"
Changelog = "https://github.com/Stormbase/django-crispy-tableselect/blob/main/CHANGELOG.md"
Issues = "https://github.com/Stormbase/django-crispy-tableselect/issues"
Source = "https://github.com/Stormbase/django-crispy-tableselect"
[tool.hatch.version]
path = "src/django_crispy_tableselect/__init__.py"
[tool.hatch.build.targets.wheel]
artifacts = [
# Include built static files that are gitignored and thus not included by default
"src/django_crispy_tableselect/static/django_crispy_tableselect/*",
# Include compiled translations that are gitignored and thus not included by default
"src/django_crispy_tableselect/locale/*/LC_MESSAGES/*.mo",
]
[tool.hatch.envs.default]
dependencies = [
"django-debug-toolbar>4,<5",
"dj-database-url>=2.1.0,<3",
"psycopg>=2.9",
"crispy-bootstrap5>=2024.2,<2025",
"factory-boy>=3.2,<4",
# To test functionality with a strict Content Security Policy
"django-csp>=3.8",
# To test behaviour as part or a multi-step form
"django-formtools>=2.4",
# Update as necessary, prevent sudden breakage
"tox>=4.14,<5",
"pytest>8,<9",
"pytest-django>4.5,<5",
"pytest-cov>=5,<6",
"pytest-env>=0.6.2,<1",
"pytest-randomly>=3.15,<4",
"beautifulsoup4>=4.12,<5",
]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [
# Update as necessary, prevent sudden breakage
"ruff>0.4,<0.5",
"isort>5,<6",
]
[tool.ruff]
target-version = "py39" # minimum target version
[tool.ruff.lint]
# E501: Line too long
ignore = ["E501"]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"T20", # flake8-print
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
use_parentheses = true
[tool.coverage.run]
source_pkgs = ["django_crispy_tableselect", "tests"]
branch = true
parallel = true
omit = []
[tool.pytest.ini_options]
pythonpath = "sandbox"
DJANGO_SETTINGS_MODULE = "settings"
testpaths = "tests/"
addopts = "--reuse-db --cov=django_crispy_tableselect"
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc.)?abstractmethod",
# Nor complain about type checking
"if TYPE_CHECKING:",
]