Fix formatting with black

This commit is contained in:
GotthardG
2024-12-16 10:48:30 +01:00
parent d1b60790d6
commit 635feb6a5b
3 changed files with 16 additions and 9 deletions

View File

@ -1,16 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.7.0 # Use the latest stable release
hooks:
- id: black
args: [--diff] # Run with `--diff` in CI to avoid unnecessary changes
always_run: true # Always run this hook, even if nothing was staged
- id: black
args: [--quiet]
stages: [commit] # Recommend full reformat for local development only
args: ["--check"]
pass_filenames: false # Ensures it lints every file, even if staged differently
always_run: true # Always runs regardless of file changes
- repo: https://github.com/pycqa/flake8
rev: 6.1.0 # Use the latest stable version
rev: 6.1.0 # Use the latest stable release
hooks:
- id: flake8
args: []