From f107839894c916a8f0075fef81312b609eeb8dee Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Tue, 28 Oct 2025 03:16:34 +0100 Subject: [PATCH] Autoupdate pre-commit and sync ruff with pyproject --- .pre-commit-config.yaml | 18 ++++++------------ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68b1236..b27ab02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,18 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.6 + rev: v0.14.2 hooks: - # Run the linter. - id: ruff - args: [ --fix ] - # Run the formatter. - id: ruff-format + args: [--config, ./pyproject.toml] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.21.0 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 25.9.0 hooks: - id: black args: @@ -22,7 +20,7 @@ repos: - --quiet files: ^((xbox|tests)/.+)?[^/]+\.py$ - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.8.6 hooks: - id: bandit args: @@ -30,12 +28,8 @@ repos: - --quiet - --format=custom files: ^(xbox|tests)/.+\.py$ -- repo: https://github.com/PyCQA/isort - rev: 5.12.0 - hooks: - - id: isort - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-executables-have-shebangs stages: [manual] diff --git a/pyproject.toml b/pyproject.toml index 09c22f4..67479e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -186,7 +186,7 @@ python = ["3.14", "3.13", "3.12", "3.11"] [tool.hatch.envs.hatch-static-analysis] dependencies = [ - "ruff==0.14.0", + "ruff==0.14.2", ] config-path = "none"