-
Notifications
You must be signed in to change notification settings - Fork 178
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 1.88 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 1.88 KB
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
ci:
skip:
- prospector
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff-format
- id: ruff
args:
- --fix
- --ignore=E501
exclude: |
(?x)^(
|tests/.*
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args:
- --ignore-words-list=nin,astroid
- --skip=poetry.lock
- repo: https://github.com/regebro/pyroma
rev: "5.0.1"
hooks:
- id: pyroma
# Must be specified because of the default value in pyroma
always_run: false
additional_dependencies:
- poetry
files: |
(?x)^(
README.rst|
pyproject.toml|
)$
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.1
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
exclude: "docs/"
- repo: local
hooks:
- id: prospector
name: prospector
description: Analyze Python code using Prospector
entry: prospector
language: python
types: [python]
require_serial: true
verbose: true
additional_dependencies:
# the following are needed to run mypy.
- types-PyYAML
exclude: |-
(?x)^(
tests/.*/testdata/.*
|tests/tools/.*/testpath/.*
|tests/tools/pylint/pylint_configs/.*
|tests/tools/pylint/test_no_init_found/.*
|tests/is_python/scrypt.*
|docs/conf\.py
)$