-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (44 loc) · 1.16 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
41
42
43
44
45
46
47
48
49
50
default_stages: [commit, push]
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
hooks:
- id: validate-pyproject
- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt
args: ['-formatter', 'retain_line_breaks_single=true']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
args: [--check]
- repo: local
hooks:
- id: pylint
name: pylint
entry: .venv/bin/pylint
language: system
types: [python]
require_serial: true
args:
- "-rn" # Only display messages
- "-sn" # Don't display the score
files: 'src/.*\.py$'
stages: [push]