mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00

* pre-commit autoupdate && pre-commit run --all-files * Black formatter needs a current version of Python
29 lines
813 B
YAML
29 lines
813 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-json
|
|
- id: end-of-file-fixer
|
|
types: [file, python]
|
|
- id: trailing-whitespace
|
|
types: [file, python]
|
|
- id: mixed-line-ending
|
|
- id: check-added-large-files
|
|
args: [--maxkb=4096]
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.10.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
args: ["--profile", "black", "-l", "88", "--trailing-comma", "--multi-line", "3"]
|
|
- repo: https://github.com/pycqa/flake8.git
|
|
rev: 7.1.1
|
|
hooks:
|
|
- id: flake8
|
|
types: [python]
|
|
args: ["--max-line-length", "88", "--ignore", "E203,E501,W503,W504"]
|