-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (108 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (108 loc) · 3.31 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
[build-system]
requires = ["hatchling>=1.21"]
build-backend = "hatchling.build"
[project]
name = "django-formdefaults"
version = "0.6.2"
description = "Per-user, database-backed default values for Django forms — lets users (and admins) save the values they typed last time."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "Michał Pasternak", email = "michal.dtz@gmail.com" },
]
keywords = [
"django",
"forms",
"defaults",
"initial-values",
"per-user",
"form-defaults",
]
classifiers = [
"Development Status :: 4 - Beta",
"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 :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"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 :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"Django>=4.2",
]
[project.optional-dependencies]
test = [
"pytest>=7",
"pytest-django>=4.8",
"testcontainers[postgres]>=4",
"psycopg[binary]>=3",
]
example = [
# Bundled dev stack for `example_project/`:
# - run-site spins up Postgres + Redis testcontainers and runs `runserver`
# - django-dev-helpers exposes `manage.py run_site` (wraps `run-site run`),
# plus an autologin endpoint and dotfiles for LLM coding agents.
# NB: 0.5+ of this project is being renamed to `django-run-site` and is
# not on PyPI yet. Stay on the published `run-site` 0.4 line here so PyPI
# accepts the metadata; install `django-run-site` from git manually if
# you need 0.5+ features.
"run-site>=0.4",
"django-dev-helpers>=0.1.3",
"psycopg[binary]>=3",
]
[project.urls]
Homepage = "https://github.com/iplweb/django-formdefaults"
Repository = "https://github.com/iplweb/django-formdefaults"
Issues = "https://github.com/iplweb/django-formdefaults/issues"
Changelog = "https://github.com/iplweb/django-formdefaults/blob/main/CHANGELOG.md"
[tool.hatch.build.targets.sdist]
include = [
"src/formdefaults",
"README.md",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml",
]
[tool.hatch.build.targets.wheel]
packages = ["src/formdefaults"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long — formatter handles it
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["B", "ARG"]
"src/formdefaults/migrations/*.py" = ["E", "W", "F", "I", "UP"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
python_files = ["test_*.py"]
testpaths = ["tests"]
pythonpath = ["."]
filterwarnings = [
"ignore::DeprecationWarning",
]