.pre-commit-config.yaml 713 Bytes
Newer Older
luopl's avatar
luopl committed
1
2
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
shihm's avatar
uodata  
shihm committed
3
    rev: v6.0.0
luopl's avatar
luopl committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
    hooks:
    -   id: check-ast
    -   id: check-added-large-files
        args: ['--maxkb=25000']
    -   id: check-merge-conflict
    -   id: check-yaml
    -   id: debug-statements
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
        args: [--markdown-linebreak-ext=md]
    -   id: no-commit-to-branch
        args: ['--branch', 'main']

-   repo: https://github.com/asottile/pyupgrade
shihm's avatar
uodata  
shihm committed
18
    rev: v3.20.0
luopl's avatar
luopl committed
19
20
    hooks:
    -   id: pyupgrade
shihm's avatar
uodata  
shihm committed
21
        args: [--py39-plus]
luopl's avatar
luopl committed
22
23

-   repo: https://github.com/astral-sh/ruff-pre-commit
shihm's avatar
uodata  
shihm committed
24
    rev: v0.13.2
luopl's avatar
luopl committed
25
26
27
28
    hooks:
    -   id: ruff
        args: [--fix]
    -   id: ruff-format