From 1b391707453d7625c7b18a3cd30e181cc3c21d77 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 4 Oct 2025 12:33:05 +0200 Subject: [PATCH 1/2] pre-commit autoupdate 2025-10-04 --- .pre-commit-config.yaml | 16 ++++++++-------- CHANGELOG.rst | 2 +- pyproject.toml | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d71920..c56ba75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ -default_language_version: - python: python3.12 +# default_language_version: +# python: python3.12 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ["--maxkb=700"] @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/crate-ci/typos - rev: v1.32.0 + rev: v1.37.2 hooks: - id: typos args: [] @@ -35,21 +35,21 @@ repos: - "--py38-plus" - repo: https://github.com/adamchainz/django-upgrade - rev: 1.25.0 + rev: 1.28.0 hooks: - id: django-upgrade args: [--target-version, "4.2"] - repo: https://github.com/python-poetry/poetry - rev: 1.8.0 + rev: 2.2.1 hooks: - id: poetry-check additional_dependencies: - - poetry-plugin-sort==0.2.0 + - poetry-plugin-sort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.13.3 hooks: - id: ruff-format - id: ruff-check diff --git a/CHANGELOG.rst b/CHANGELOG.rst index da4187d..2392720 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -83,7 +83,7 @@ django-fsm 2.5.0 2017-03-04 django-fsm 2.4.0 2016-05-14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- graph_transition commnad now works with multiple FSM's per model +- graph_transition command now works with multiple FSM's per model - Add ability to set target state from transition return value or callable diff --git a/pyproject.toml b/pyproject.toml index cdc6195..017f147 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,6 +76,7 @@ extend-ignore = [ "EM102", # Exception must not use an f-string literal, assign to variable first "SLF001", # Private member accessed "SIM103", # Return the condition directly + "PLC0415", # `import` should be at the top-level of a file "PLR0913", # Too many arguments in function definition ] fixable = [ From cbcd5a13f08a831704a58a68ec18ca9746a7d5e5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 4 Oct 2025 12:35:19 +0200 Subject: [PATCH 2/2] default_language_version: python: python3.12 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c56ba75..2c27c99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ -# default_language_version: -# python: python3.12 +default_language_version: + python: python3.12 repos: - repo: https://github.com/pre-commit/pre-commit-hooks