Fix formatting with black
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user