diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d71920..2c27c99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: 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 = [