Skip to content

Commit

Permalink
Pre-commit: Update and extend hooks, and fix prospector
Browse files Browse the repository at this point in the history
  • Loading branch information
t-reents committed Dec 9, 2024
1 parent 9c75196 commit fa80594
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fa80594

Please sign in to comment.