Skip to content

Commit 129d2b8

Browse files
nickmoretonclaude
andcommitted
Fix pyproject-fmt hook and pin stable Django 5.2
Pin toml-fmt-common<1.3.3 to avoid the --table-format argparse collision with pyproject-fmt 2.21.2, and require stable Django 5.2 instead of the 5.2b1 beta in the tox matrix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a044966 commit 129d2b8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ repos:
1818
rev: "v2.21.2"
1919
hooks:
2020
- id: pyproject-fmt
21+
# pyproject-fmt 2.21.2 (latest) still defines --table-format itself,
22+
# which collides with toml-fmt-common>=1.3.3 that also adds the flag.
23+
# Pin the transitive dep until a fixed pyproject-fmt release ships.
24+
additional_dependencies: ["toml-fmt-common<1.3.3"]
2125
args: ["--max-supported-python=3.14"]
2226
- repo: https://github.com/adamchainz/django-upgrade
2327
rev: "1.30.0"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ basepython =
2626
py314: python3.14
2727

2828
deps =
29-
dj52: Django>=5.2b1,<5.3
29+
dj52: Django>=5.2,<5.3
3030
dj60: Django>=6.0,<6.1
3131
wt70: wagtail>=7.0,<7.1
3232
wt73: wagtail>=7.3,<7.4

0 commit comments

Comments
 (0)