Spaces:
Running on Zero
Running on Zero
File size: 1,232 Bytes
0828c2c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args: ['--maxkb=6000']
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: debug-statements
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
hooks:
# Run the linter
- id: ruff
args: ['--fix']
# Run the formatter
- id: ruff-format
# Uncomment to enable mypy type checking (requires adding mypy and type stubs to dev dependencies)
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.11.2
# hooks:
# - id: mypy
# additional_dependencies: ['types-PyYAML']
# args: ['--ignore-missing-imports', '--no-strict-optional']
# exclude: '^tests/'
# Set this to allow pre-commit to work with uv or other package managers
default_language_version:
python: python3.10
|