From fa80594867db4ba4cb9a9f1313f38a5a626070f7 Mon Sep 17 00:00:00 2001 From: Timo Reents Date: Wed, 4 Dec 2024 16:01:14 +0100 Subject: [PATCH] Pre-commit: Update and extend hooks, and fix prospector --- .pre-commit-config.yaml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9063423..a9ede97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,26 @@ +exclude: ^seekpath/hpkot/band_path_data + repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.3 + rev: v4.6.0 hooks: - id: trailing-whitespace + - id: end-of-file-fixer + - id: double-quote-string-fixer + +- repo: https://github.com/ikamensh/flynt/ + rev: 1.0.1 + hooks: + - id: flynt -- repo: https://github.com/ambv/black - rev: 23.3.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.0 hooks: - - id: black + - id: ruff-format + - id: ruff + args: [--fix, --exit-non-zero-on-fix, --show-fixes] -#- repo: local -# hooks: -# - id: prospector -# language: system -# types: [file, python] -# name: prospector -# description: "This hook runs Prospector: https://github.com/landscapeio/prospector" -# entry: prospector +- repo: https://github.com/PyCQA/prospector + rev: v1.11.0 + hooks: + - id: prospector