Skip to content

Commit 155244b

Browse files
committed
chore: Update pre-commit
1 parent 51b046f commit 155244b

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v2.5.0
6+
rev: v3.2.0
77
hooks:
88
- id: check-yaml
99
- id: end-of-file-fixer
@@ -19,25 +19,25 @@ repos:
1919
- id: gitlint
2020

2121
- repo: https://github.com/adrienverge/yamllint
22-
rev: v1.21.0
22+
rev: v1.24.2
2323
hooks:
2424
- id: yamllint
2525

2626
- repo: https://github.com/doublify/pre-commit-rust
27-
rev: master
27+
rev: 14b3e118cfc36fb87d8d9cbd1305a2238fd85868
2828
hooks:
2929
- id: fmt
3030
- id: cargo-check
3131
- id: clippy
3232

3333
- repo: https://github.com/ambv/black
34-
rev: stable
34+
rev: 20.8b1
3535
hooks:
3636
- id: black
3737
types: [python]
3838

3939
- repo: https://github.com/pre-commit/mirrors-isort
40-
rev: v4.3.21
40+
rev: v5.4.2
4141
hooks:
4242
- id: isort
4343
additional_dependencies: ["isort[pyproject]"]

python/benches/bench.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ def parametrize_functions(*funcs, ids=("css_inline", "premailer", "pynliner", "i
155155

156156

157157
all_functions = parametrize_functions(
158-
css_inline.inline, premailer.transform, pynliner.fromString, inlinestyler.utils.inline_css
158+
css_inline.inline,
159+
premailer.transform,
160+
pynliner.fromString,
161+
inlinestyler.utils.inline_css,
159162
)
160163

161164

python/tests-py/test_inlining.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ def test_invalid_base_url():
7373
extra_css=st.text() | st.none(),
7474
)
7575
@settings(max_examples=1000)
76-
def test_random_input(document, inline_style_tags, remove_style_tags, base_url, load_remote_stylesheets, extra_css):
76+
def test_random_input(
77+
document,
78+
inline_style_tags,
79+
remove_style_tags,
80+
base_url,
81+
load_remote_stylesheets,
82+
extra_css,
83+
):
7784
with suppress(ValueError):
7885
inliner = css_inline.CSSInliner(
7986
inline_style_tags=inline_style_tags,

0 commit comments

Comments
 (0)