Skip to content

Commit

Permalink
Updating pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Feb 7, 2025
1 parent 00e6592 commit 6b90a7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-added-large-files
args: ['--maxkb=1000']
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
args: [--target-version, py36]
Expand All @@ -28,13 +28,13 @@ repos:
- id: blacken-docs
additional_dependencies: [black==22.1.0]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.9.5
hooks:
- id: ruff
args: ['--fix']
exclude: "tests/"
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand All @@ -45,7 +45,7 @@ repos:
args: ["--ignore", "E,W,F"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
rev: 'v1.15.0'
hooks:
- id: mypy
files: ^pdfly/.*
Expand Down
7 changes: 3 additions & 4 deletions make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,9 @@ def get_formatted_changes(git_tag: str) -> Tuple[str, str]:
if grouped:
output += "\n### Other\n"
output_with_user += "\n### Other\n"
for prefix in grouped:
for commit_dict in grouped[prefix]:
output += f"- {prefix}: {commit_dict['msg']}\n"
output_with_user += f"- {prefix}: {commit_dict['msg']} by @{commit_dict['author']}\n"
for prefix, commit_dict in grouped.items():
output += f"- {prefix}: {commit_dict['msg']}\n"
output_with_user += f"- {prefix}: {commit_dict['msg']} by @{commit_dict['author']}\n"

return output, output_with_user

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ ignore = [
"N806", # Variable `NO` in function should be lowercase
"N814", # Camelcase `PageAttributes` imported as constant `PG`
"N817", # CamelCase `PagesAttributes` imported as acronym `PA`
"ANN101", # annotating 'self' seems weird (at least before 3.11)
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN204", # Missing return type annotation for special method `__init__`
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"BLE", # we want to capture Exception sometimes
Expand Down

0 comments on commit 6b90a7d

Please sign in to comment.