Skip to content

Commit 29b685a

Browse files
committed
Add pre-commit rules
1 parent 55ae80d commit 29b685a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_language_version:
4+
python: python3.10
5+
repos:
6+
#- repo: https://github.com/pre-commit/pre-commit-hooks
7+
# rev: v4.4.0
8+
# hooks:
9+
# - id: check-added-large-files
10+
# - id: check-toml
11+
# - id: check-yaml
12+
# args:
13+
# - --unsafe
14+
# - id: end-of-file-fixer
15+
# - id: trailing-whitespace
16+
- repo: https://github.com/asottile/pyupgrade
17+
rev: v3.3.1
18+
hooks:
19+
- id: pyupgrade
20+
args:
21+
- --py38-plus
22+
- --keep-runtime-typing
23+
- repo: https://github.com/charliermarsh/ruff-pre-commit
24+
rev: v0.0.270
25+
hooks:
26+
- id: ruff
27+
args:
28+
- --fix
29+
- --exit-non-zero-on-fix
30+
- repo: https://github.com/pycqa/isort
31+
rev: 5.12.0
32+
hooks:
33+
- id: isort
34+
name: isort (python)
35+
- id: isort
36+
name: isort (cython)
37+
types: [cython]
38+
- id: isort
39+
name: isort (pyi)
40+
types: [pyi]
41+
- repo: https://github.com/psf/black
42+
rev: 23.1.0
43+
hooks:
44+
- id: black

0 commit comments

Comments
 (0)