Skip to content

Commit 7277d80

Browse files
committed
update pre-commit hooks
1 parent 5c8a105 commit 7277d80

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ ci:
33
autoupdate_schedule: monthly
44
repos:
55
- repo: https://github.com/asottile/pyupgrade
6-
rev: v3.10.1
6+
rev: v3.15.0
77
hooks:
88
- id: pyupgrade
99
args: ["--py37-plus"]
1010
- repo: https://github.com/asottile/reorder-python-imports
11-
rev: v3.10.0
11+
rev: v3.12.0
1212
hooks:
1313
- id: reorder-python-imports
1414
args: ["--application-directories", "src"]
1515
- repo: https://github.com/psf/black
16-
rev: 23.7.0
16+
rev: 23.12.1
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/PyCQA/flake8
20-
rev: 6.1.0
20+
rev: 7.0.0
2121
hooks:
2222
- id: flake8
2323
additional_dependencies: [flake8-bugbear]
@@ -26,7 +26,7 @@ repos:
2626
hooks:
2727
- id: pip-compile-multi-verify
2828
- repo: https://github.com/pre-commit/pre-commit-hooks
29-
rev: v4.4.0
29+
rev: v4.5.0
3030
hooks:
3131
- id: fix-byte-order-marker
3232
- id: trailing-whitespace

src/jinja2/compiler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1406,15 +1406,15 @@ def _make_finalize(self) -> _FinalizeInfo:
14061406

14071407
if pass_arg is None:
14081408

1409-
def finalize(value: t.Any) -> t.Any:
1409+
def finalize(value: t.Any) -> t.Any: # noqa: F811
14101410
return default(env_finalize(value))
14111411

14121412
else:
14131413
src = f"{src}{pass_arg}, "
14141414

14151415
if pass_arg == "environment":
14161416

1417-
def finalize(value: t.Any) -> t.Any:
1417+
def finalize(value: t.Any) -> t.Any: # noqa: F811
14181418
return default(env_finalize(self.environment, value))
14191419

14201420
self._finalize = self._FinalizeInfo(finalize, src)

src/jinja2/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ def parse_subscribed(self) -> nodes.Expr:
859859
else:
860860
args.append(None)
861861

862-
return nodes.Slice(lineno=lineno, *args)
862+
return nodes.Slice(lineno=lineno, *args) # noqa: B026
863863

864864
def parse_call_args(self) -> t.Tuple:
865865
token = self.stream.expect("lparen")

0 commit comments

Comments
 (0)