From 540f394472f6d225e09cd106bbd8844108d3c5b9 Mon Sep 17 00:00:00 2001 From: Alexander Hans Date: Wed, 7 Jan 2026 15:24:09 +0100 Subject: [PATCH] update pre-commit hooks --- .pre-commit-config.yaml | 14 +++++++------- python/dbscan_test.py | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ad6e5a..2a024b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,28 +2,28 @@ exclude: (.*\.patch) repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort name: isort (python) - repo: https://github.com/pycqa/autoflake - rev: v2.0.1 + rev: v2.3.1 hooks: - id: autoflake args: [--remove-unused-variables] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 25.12.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 exclude: ^bazel- @@ -32,11 +32,11 @@ repos: hooks: - id: pydocstyle - repo: https://github.com/keith/pre-commit-buildifier - rev: 6.0.0 + rev: 8.2.1 hooks: - id: buildifier - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v15.0.7 + rev: v21.1.8 hooks: - id: clang-format "types_or": [c++, c, cuda] diff --git a/python/dbscan_test.py b/python/dbscan_test.py index 528e214..2f9404f 100644 --- a/python/dbscan_test.py +++ b/python/dbscan_test.py @@ -1,4 +1,5 @@ """Tests of DBSCAN C++ modules from Python.""" + import sys import numpy as np