-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (37 loc) · 1.13 KB
/
.pre-commit-config.yaml
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
# This file configures automated checks triggered by git events.
# To install pre-commit, run: `pip install pre-commit`
#
# To run all hooks manually, use: `pre-commit run -a`
# To enable automated checks on commit, run: `pre-commit install`
#
# See https://github.com/pre-commit/pre-commit for more information
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.5
hooks:
- id: ruff # linter
args: [ --fix ]
- id: ruff-format # formatter
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=50"]
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- id: check-symlinks