abdev-leaderboard / .pre-commit-config.yaml
pquintero's picture
precommit
58d937b
raw
history blame contribute delete
989 Bytes
exclude: '^.*\.(ipynb|json)$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: |
(?x)^(
.bumpversion.cfg
)$
# Fast Python linter and formatter - replaces flake8, isort, and black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
# Run the Ruff linter
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
# Run the Ruff formatter
- id: ruff-format