Skip to content

Commit 93f8573

Browse files
authored
Merge pull request #1947 from glensc/astral-ruff
Setup ruff (from astral-sh) pre-commit hook
2 parents 5605ab9 + 7125a74 commit 93f8573

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,27 @@
33
# To update dependencies here, run 'pre-commit autoupdate'
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.5.0
6+
rev: v4.6.0
77
hooks:
8-
- id: trailing-whitespace
9-
- id: end-of-file-fixer
108
- id: check-yaml
119
- id: check-json
1210
- id: check-added-large-files
1311
- id: fix-byte-order-marker
14-
- id: check-builtin-literals
1512
- id: check-case-conflict
16-
- id: check-executables-have-shebangs
17-
- id: check-shebang-scripts-are-executable
1813
- id: check-merge-conflict
1914
- id: check-vcs-permalinks
2015
- id: destroyed-symlinks
21-
- id: mixed-line-ending
2216

23-
- repo: https://github.com/pycqa/isort
24-
rev: 5.13.2
17+
- repo: https://github.com/astral-sh/ruff-pre-commit
18+
rev: v0.4.4
2519
hooks:
26-
- id: isort
27-
name: isort (Python)
28-
29-
- repo: https://github.com/pre-commit/mirrors-prettier
30-
rev: v4.0.0-alpha.8
31-
hooks:
32-
- id: prettier
20+
- id: ruff
21+
args: [ --fix ]
22+
- id: ruff-format
3323

3424
- repo: https://github.com/dannysepler/rm_unneeded_f_str
3525
rev: v0.2.0
3626
hooks:
3727
- id: rm-unneeded-f-str
3828

39-
- repo: https://github.com/pycqa/flake8
40-
rev: 7.0.0
41-
hooks:
42-
- id: flake8
43-
44-
- repo: https://github.com/ikamensh/flynt/
45-
rev: "1.0.1"
46-
hooks:
47-
- id: flynt
48-
49-
- repo: https://github.com/asottile/pyupgrade
50-
rev: v3.15.2
51-
hooks:
52-
- id: pyupgrade
53-
args:
54-
- --py38-plus
5529
# vim:ts=2:sw=2:et

0 commit comments

Comments
 (0)