-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (155 loc) · 6.31 KB
/
Copy pathpyproject.toml
File metadata and controls
184 lines (155 loc) · 6.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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[project]
name = "django-reversion-compare"
dynamic = ["version"]
description = "Add compare view to django-reversion for comparing two versions of a reversion model."
license = {text = "GPL-3.0-or-later"}
readme = "README.md"
authors = [
{name = 'Jens Diemer', email = 'django-reversion-compare@jensdiemer.de'}
]
requires-python = ">=3.12"
dependencies = [
"django", # https://docs.djangoproject.com
"django-reversion", # https://github.com/etianen/django-reversion
"diff-match-patch", # https://github.com/diff-match-patch-python/diff-match-patch
#
# We use rich.pretty.pretty_repr() for pretty format fallback:
"rich", # https://github.com/Textualize/rich
]
[dependency-groups]
dev = [
"bx_django_utils", # https://github.com/boxine/bx_django_utils
"django-countries", # https://github.com/SmileyChris/django-countries
"model_bakery", # https://github.com/model-bakers/model_bakery
"requests-mock", # https://github.com/jamielennox/requests-mock/
"django-override-storage", # https://github.com/danifus/django-override-storage
"beautifulsoup4", # https://pypi.org/project/beautifulsoup4/
"freezegun", # https://github.com/spulec/freezegun
"colorlog", # https://github.com/borntyping/python-colorlog
"gunicorn", # https://github.com/benoimyproject.wsgitc/gunicorn
"django-debug-toolbar", # http://django-debug-toolbar.readthedocs.io/en/stable/changes.html
"manage_django_project>=0.10.0", # https://github.com/jedie/manage_django_project
"uv", # https://github.com/astral-sh/uv
"hatchling", # https://github.com/pypa/hatch/tree/master/backend
"tblib", # https://github.com/ionelmc/python-tblib
"nox", # https://github.com/wntrblm/nox
"coverage", # https://github.com/nedbat/coveragepy
"ruff", # https://github.com/astral-sh/ruff
"codespell", # https://github.com/codespell-project/codespell
"EditorConfig", # https://github.com/editorconfig/editorconfig-core-py
"pip-audit", # https://github.com/pypa/pip-audit
"mypy", # https://github.com/python/mypy
"twine", # https://github.com/pypa/twine
"pre-commit", # https://github.com/pre-commit/pre-commit
"typeguard", # https://github.com/agronholm/typeguard/
"model_bakery", # https://github.com/model-bakers/model_bakery
"requests-mock",
"django-override-storage", # https://github.com/danifus/django-override-storage
]
[tool.uv]
# Don't install bleed-edge versions of dependencies, to avoid undetected issues and supply chain attacks.
exclude-newer = "1 week"
[tool.uv.exclude-newer-package]
# Exclude own packages from the "exclude-newer" rule and
# add external packages temporarily to fix known issues or current CVEs
cryptography = "2026-04-21T12:00:00Z"
[tool.cli_base.pip_audit]
strict=true
require_hashes=true
ignore-vuln=[
"CVE-2026-4539", # https://github.com/pygments/pygments/issues/3058#issuecomment-4127344972
]
[tool.cli_base]
version_module_name = "reversion_compare" # Used by "update-readme-history" pre-commit hook
[project.urls]
Documentation = "https://github.com/jedie/django-reversion-compare"
Source = "https://github.com/jedie/django-reversion-compare"
[project.scripts]
# Must be set in ./manage.py and PROJECT_SHELL_SCRIPT:
reversion_compare_project = "reversion_compare_project.__main__:main"
[manage_django_project]
module_name="reversion_compare_project"
# Django settings used for all commands except test/coverage/tox:
local_settings='reversion_compare_project.settings.local'
# Django settings used for test/coverage/tox commands:
test_settings='reversion_compare_project.settings.tests'
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["reversion_compare", "reversion_compare_project"]
[tool.hatch.version]
path = "reversion_compare/__init__.py"
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
line-length = 120
exclude = [
".*/",
"*/migrations/*"
]
[tool.ruff.lint]
preview = true # Needed for some of the rules
extend-select = [
"E", # pycodestyle: https://docs.astral.sh/ruff/rules/#error-e
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"E402", # https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/
"E731", # https://docs.astral.sh/ruff/rules/lambda-assignment/
]
[tool.ruff.lint.isort]
# https://docs.astral.sh/ruff/settings/#lintisort
lines-after-imports = 2
[tool.ruff.format]
quote-style = "single"
[tool.coverage.run] # https://coverage.readthedocs.io/en/latest/config.html#run
branch = true
parallel = true
concurrency = ["multiprocessing"]
source = ['.']
command_line = '-m reversion_compare_project test --shuffle --parallel --buffer --verbosity 2'
[tool.coverage.report]
omit = ['.*', '*/tests/*', '*/migrations/*']
skip_empty = true
fail_under = 30
show_missing = true
exclude_lines = [
'if self.debug:',
'pragma: no cover',
'raise NotImplementedError',
'if __name__ == .__main__.:',
]
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
allow_redefinition = true # https://github.com/python/mypy/issues/7165
show_error_codes = true
plugins = []
exclude = ['.venv', 'tests', 'migrations']
[manageprojects] # https://github.com/jedie/manageprojects
initial_revision = "02d64b0"
initial_date = 2023-04-06T11:01:20+02:00
cookiecutter_template = "https://github.com/jedie/cookiecutter_templates/"
cookiecutter_directory = "managed-django-project"
applied_migrations = [
"00fbc5d", # 2023-04-07T12:35:09+02:00
"c1a9d97", # 2023-11-01T19:59:17+01:00
"363c360", # 2023-12-16T19:37:39+01:00
"a66e5ae", # 2024-01-16T19:13:13+01:00
"1f3a70e", # 2024-05-21T21:22:39+02:00
"935485b", # 2024-09-09T10:39:39+02:00
"86b20b9", # 2025-09-22T21:43:37+02:00
"38082ef", # 2025-10-16T10:28:32+02:00
"af6dd62", # 2026-01-26T16:04:53+01:00
"1124332", # 2026-04-22T17:46:04+02:00
]
[manageprojects.cookiecutter_context.cookiecutter]
full_name = "Jens Diemer"
github_username = "jedie"
author_email = "django-reversion-compare@jensdiemer.de"
package_name = "reversion_compare"
package_version = "0.15.0"
package_description = "Add compare view to django-reversion for comparing two versions of a reversion model."
package_url = "https://github.com/jedie/django-reversion-compare"
license = "GPL-3.0-or-later"
_template = "https://github.com/jedie/cookiecutter_templates/"