Spaces:
Runtime error
Runtime error
default_language_version: | |
node: system | |
python: python3.8 | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.4.0 | |
hooks: | |
- id: debug-statements | |
- id: end-of-file-fixer | |
exclude: "^.*.crt|^.*.json|^.*.svg|^.*.txt" | |
- id: requirements-txt-fixer | |
- id: trailing-whitespace | |
# - id: pretty-format-json | |
# args: [--autofix] | |
- repo: https://github.com/astral-sh/ruff-pre-commit | |
# Ruff version. | |
rev: v0.0.282 | |
hooks: | |
- id: ruff | |
args: [--fix, --exit-non-zero-on-fix] | |
- repo: https://github.com/psf/black | |
rev: 23.7.0 | |
# TODO: ensure that the black version is aligned, with another hook? | |
hooks: | |
- id: black | |
language: python | |
types: [python] | |
- repo: meta | |
hooks: | |
- id: check-useless-excludes | |
- id: check-hooks-apply | |