Skip to content

Commit e15d785

Browse files
committed
update
1 parent 2060a86 commit e15d785

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Install pre-commit hooks via:
2+
# pre-commit install
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
- id: mixed-line-ending
9+
- id: trailing-whitespace
10+
- id: check-json
11+
12+
- repo: https://github.com/asottile/pyupgrade
13+
rev: v3.15.0
14+
hooks:
15+
- id: pyupgrade
16+
args: ["--py39-plus"]
17+
18+
- repo: local
19+
hooks:
20+
- id: pylint
21+
language: system
22+
types: [file, python]
23+
name: pylint
24+
description: "This hook runs the pylint static code analyzer"
25+
exclude: &exclude_files >
26+
(?x)^(
27+
docs/.*|
28+
)$
29+
entry: pylint
30+
args:
31+
[
32+
"--good-names=e,i,j,k"
33+
]
34+
35+
- repo: https://github.com/astral-sh/ruff-pre-commit
36+
rev: v0.5.0
37+
hooks:
38+
- id: ruff # replaces Flake8, isort, pydocstyle, pyupgrade
39+
args:
40+
- --fix
41+
- id: ruff-format # replaces Black

0 commit comments

Comments
 (0)