Skip to content

Commit 1745c50

Browse files
committed
update pre-commit + add boidolr/pre-commit-images
1 parent b5fe33f commit 1745c50

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.pre-commit-config.yaml

+20-5
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
11
repos:
22
- repo: https://github.com/FHPythonUtils/Blackt
3-
rev: '2021'
3+
rev: '2022.0.1'
44
hooks:
55
- id: blackt
66

77
- repo: https://github.com/pycqa/isort
8-
rev: 5.9.3
8+
rev: 5.10.1
99
hooks:
1010
- id: isort
1111

1212
- repo: https://github.com/pycqa/pylint
13-
rev: v2.11.1
13+
rev: v2.12.2
1414
hooks:
1515
- id: pylint
1616
args: [--disable=import-error,--jobs=0, --fail-under=9.8, --ignore-patterns=test.*?py]
1717

1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.0.1
19+
rev: v4.1.0
2020
hooks:
2121
- id: trailing-whitespace
22+
exclude: "tests/"
2223
- id: end-of-file-fixer
24+
exclude: "tests/"
2325

2426
- repo: https://github.com/asottile/pyupgrade
25-
rev: v2.29.0
27+
rev: v2.31.0
2628
hooks:
2729
- id: pyupgrade
2830
args: [--py37-plus]
31+
- repo: https://github.com/boidolr/pre-commit-images
32+
rev: v1.0.0
33+
hooks:
34+
- id: optimize-avif
35+
exclude: "tests/"
36+
- id: optimize-jpg
37+
exclude: "tests/"
38+
- id: optimize-png
39+
exclude: "tests/"
40+
- id: optimize-svg
41+
exclude: "tests/"
42+
- id: optimize-webp
43+
exclude: "tests/"

readme-assets/icons/PyLottie.png

-6.72 KB
Loading

0 commit comments

Comments
 (0)