Skip to content

Commit 6b90a7d

Browse files
committed
Updating pre-commit hooks
1 parent 00e6592 commit 6b90a7d

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: check-added-large-files
1919
args: ['--maxkb=1000']
2020
- repo: https://github.com/psf/black
21-
rev: 24.10.0
21+
rev: 25.1.0
2222
hooks:
2323
- id: black
2424
args: [--target-version, py36]
@@ -28,13 +28,13 @@ repos:
2828
- id: blacken-docs
2929
additional_dependencies: [black==22.1.0]
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
31-
rev: v0.7.4
31+
rev: v0.9.5
3232
hooks:
3333
- id: ruff
3434
args: ['--fix']
3535
exclude: "tests/"
3636
- repo: https://github.com/asottile/pyupgrade
37-
rev: v3.19.0
37+
rev: v3.19.1
3838
hooks:
3939
- id: pyupgrade
4040
args: [--py36-plus]
@@ -45,7 +45,7 @@ repos:
4545
args: ["--ignore", "E,W,F"]
4646

4747
- repo: https://github.com/pre-commit/mirrors-mypy
48-
rev: 'v1.13.0'
48+
rev: 'v1.15.0'
4949
hooks:
5050
- id: mypy
5151
files: ^pdfly/.*

make_release.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ def get_formatted_changes(git_tag: str) -> Tuple[str, str]:
259259
if grouped:
260260
output += "\n### Other\n"
261261
output_with_user += "\n### Other\n"
262-
for prefix in grouped:
263-
for commit_dict in grouped[prefix]:
264-
output += f"- {prefix}: {commit_dict['msg']}\n"
265-
output_with_user += f"- {prefix}: {commit_dict['msg']} by @{commit_dict['author']}\n"
262+
for prefix, commit_dict in grouped.items():
263+
output += f"- {prefix}: {commit_dict['msg']}\n"
264+
output_with_user += f"- {prefix}: {commit_dict['msg']} by @{commit_dict['author']}\n"
266265

267266
return output, output_with_user
268267

pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ ignore = [
8787
"N806", # Variable `NO` in function should be lowercase
8888
"N814", # Camelcase `PageAttributes` imported as constant `PG`
8989
"N817", # CamelCase `PagesAttributes` imported as acronym `PA`
90-
"ANN101", # annotating 'self' seems weird (at least before 3.11)
91-
"ANN102", # Missing type annotation for `cls` in classmethod
9290
"ANN204", # Missing return type annotation for special method `__init__`
9391
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
9492
"BLE", # we want to capture Exception sometimes

0 commit comments

Comments
 (0)