-
Notifications
You must be signed in to change notification settings - Fork 28
/
.pre-commit-config.yaml
82 lines (81 loc) · 2.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# See https://pre-commit.ci for CI config
ci:
autoupdate_schedule: monthly
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: local
hooks:
- id: check-future-annotations
name: check future annotations
language: script
entry: scripts/check-future-annotations.sh
types: [python]
exclude: ^docs/source/
- id: check-license-header
name: check license header
language: script
entry: scripts/check-license-header.sh
types_or: [cython, python]
exclude: ^docs/source/
- 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
- id: trailing-whitespace
- repo: 'https://github.com/charliermarsh/ruff-pre-commit'
rev: v0.7.2
hooks:
- id: ruff
- repo: 'https://github.com/psf/black'
rev: 24.10.0
hooks:
- id: black
types: [python]
- repo: 'https://github.com/MarcoGorelli/cython-lint'
rev: v0.16.2
hooks:
- id: cython-lint
- repo: 'https://github.com/pycqa/flake8'
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-force
- flake8-pytest-style
types_or: [cython, python]
- repo: 'https://github.com/PyCQA/isort'
rev: 5.13.2
hooks:
- id: isort
types_or: [cython, python]
- repo: 'https://github.com/PyCQA/pylint'
rev: v3.3.1
hooks:
- id: pylint
additional_dependencies:
- pylint-per-file-ignores
args:
- '-rn'
- '--fail-under=9'
- '--disable=no-name-in-module'
- '--disable=import-error'
- repo: 'https://github.com/asottile/pyupgrade'
rev: v3.19.0
hooks:
- id: pyupgrade
types_or: [cython, python]
args:
- '--py38-plus'
- '--keep-runtime-typing'
- repo: 'https://github.com/abravalheri/validate-pyproject'
rev: v0.22
hooks:
- id: validate-pyproject