From 67c414aacde5d17430c6693695d08743daf8a2ad Mon Sep 17 00:00:00 2001 From: Kojo Idrissa Date: Fri, 9 Oct 2026 09:47:38 -0500 Subject: [PATCH] Adopt toml-sort 0.25 inline-table spacing toml-sort 0.25.0, an unbounded dependency of pretty-format-toml, writes `{ name = ... }`. Set a toml-sort>=0.25 floor so pre-commit.ci builds a fresh hook environment instead of reusing a cached 0.24 one, and apply the hook's reformat. The reformat is whitespace only. Same change as westerveltco/django-twc-package#253 and westerveltco/lease#2330. Co-Authored-By: Claude Opus 5.5 --- .pre-commit-config.yaml | 1 + pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54a86ad..819ec1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,6 +66,7 @@ repos: hooks: - id: pretty-format-toml args: [--autofix] + additional_dependencies: [toml-sort>=0.25] - repo: https://github.com/abravalheri/validate-pyproject rev: '0.26' diff --git a/pyproject.toml b/pyproject.toml index 44bb277..c1b3a90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ build-backend = "hatchling.build" requires = ["hatchling"] [project] -authors = [{name = "Josh Thomas", email = "josh@joshthomas.dev"}] +authors = [{ name = "Josh Thomas", email = "josh@joshthomas.dev" }] classifiers = [ "Development Status :: 3 - Alpha", "Framework :: Django", @@ -26,7 +26,7 @@ dependencies = ["django>=4.2"] description = "A custom Django field for storing and securely accessing a 1Password vault item." dynamic = ["version"] keywords = [] -license = {file = "LICENSE"} +license = { file = "LICENSE" } name = "django-opfield" readme = "README.md" requires-python = ">=3.9"