Spaces:
Configuration error
Configuration error
repos: | |
- repo: https://github.com/astral-sh/ruff-pre-commit | |
# Ruff version. | |
rev: v0.1.14 | |
hooks: | |
# Run the linter. | |
- id: ruff | |
args: [ --fix ] | |
# Run the formatter. | |
- id: ruff-format | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.5.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: fix-encoding-pragma | |
args: [--remove] | |
- id: check-yaml | |
- id: debug-statements | |
exclude: _pytest/(debugging|hookspec).py | |
language_version: python3 | |
- repo: https://github.com/asottile/reorder-python-imports | |
rev: v3.12.0 | |
hooks: | |
- id: reorder-python-imports | |
args: ['--application-directories=.:src', --py310-plus] | |