-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (25 loc) · 928 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (25 loc) · 928 Bytes
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
repos:
# ruff replaces: black (formatting), flake8 (linting), isort (imports),
# pyupgrade, pep8-naming, flake8-bugbear, flake8-bandit, flake8-docstrings.
# Each hook manages its own isolated environment; no system tools required.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# General file-health hooks (no build tools needed).
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: docs/
- id: trailing-whitespace
# Opinionated formatter for YAML / JSON / Markdown / JS / CSS.
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier