Skip to content

Commit fc327d1

Browse files
authored
chore: update pre-commit tools (#937)
Signed-off-by: Louis Mandel <[email protected]>
1 parent 19349ab commit fc327d1

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ repos:
1616
- id: debug-statements
1717
# Clean up imports in Python using isort
1818
- repo: https://github.com/pycqa/isort
19-
rev: 5.13.2
19+
rev: 6.0.1
2020
hooks:
2121
- id: isort
2222
args: [--filter-files, --profile, black]
2323
# Format the python code with black
2424
- repo: https://github.com/psf/black
25-
rev: 24.8.0
25+
rev: 25.1.0
2626
hooks:
2727
- id: black
2828
# Lint the python code with flake
2929
- repo: https://github.com/PyCQA/flake8
30-
rev: 7.1.1
30+
rev: 7.2.0
3131
hooks:
3232
- id: flake8
3333
# Type check the Python code with pylint
@@ -47,13 +47,13 @@ repos:
4747
]
4848
# run the bandit security linter
4949
- repo: https://github.com/PyCQA/bandit
50-
rev: 1.7.10
50+
rev: 1.8.3
5151
hooks:
5252
- id: bandit
5353
args: [-c, bandit.yaml]
5454
# Type check the Python code with MyPy
5555
- repo: https://github.com/pre-commit/mirrors-mypy
56-
rev: 'v1.11.2'
56+
rev: 'v1.15.0'
5757
hooks:
5858
- id: mypy
5959
verbose: true

src/pdl/pdl_ast.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""PDL programs are represented by the Pydantic data structure defined in this file.
2-
"""
1+
"""PDL programs are represented by the Pydantic data structure defined in this file."""
32

43
from enum import StrEnum
54
from typing import (

src/pdl/pdl_dumper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def location_to_dict(location: PdlLocationType) -> dict[str, Any]:
378378

379379

380380
def contribute_to_list(
381-
contribute: Sequence[ContributeTarget | dict[str, ContributeValue]]
381+
contribute: Sequence[ContributeTarget | dict[str, ContributeValue]],
382382
) -> list[str | dict[str, Any]]:
383383
acc: list[str | dict[str, Any]] = []
384384
for contrib in contribute:

src/pdl/pdl_interpreter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ def generate_client_response_streaming(
14541454

14551455

14561456
def litellm_parameters_to_dict(
1457-
parameters: Optional[LitellmParameters | dict[str, Any]]
1457+
parameters: Optional[LitellmParameters | dict[str, Any]],
14581458
) -> dict[str, Any]:
14591459
if isinstance(parameters, dict):
14601460
return {k: v for k, v in parameters.items() if k != "stream"}

src/pdl/pdl_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def replace_contribute_value(
9494

9595

9696
def get_contribute_value(
97-
contribute: Sequence[ContributeTarget | dict[str, ContributeValue]] | None
97+
contribute: Sequence[ContributeTarget | dict[str, ContributeValue]] | None,
9898
):
9999
if contribute is None:
100100
return None

0 commit comments

Comments
 (0)