Fix formatting with black

This commit is contained in:
GotthardG
2024-12-16 11:20:33 +01:00
parent 956339c499
commit fbcfe86b9f
4 changed files with 16 additions and 564 deletions

View File

@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 23.7.0 # Use the latest stable release
rev: 23.7.0 # Use the latest stable version of black
hooks:
- id: black
args: ["--check"]
pass_filenames: false # Ensures it lints every file, even if staged differently
always_run: true # Always runs regardless of file changes
name: Black code formatter
args: ["--check"] # Only check formatting without modifying
- repo: https://github.com/pycqa/flake8
rev: 6.1.0 # Use the latest stable release
rev: 6.1.0 # Use the latest stable version of flake8
hooks:
- id: flake8
args: []
name: Flake8 linter
args: ["--max-line-length=88", "--ignore=E203,W503"] # Match black's behavior