Skip to content

Commit

Permalink
chore: Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Sep 11, 2023
1 parent b12716e commit dca9e94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.2
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies:
Expand All @@ -87,8 +87,8 @@ repos:
- pydocstyle[toml]
args:
- --add-ignore=D1
- repo: https://github.com/psf/black
rev: 23.3.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
- repo: local
Expand Down Expand Up @@ -125,10 +125,10 @@ repos:
- pylint==2.16.2
args: [-rn, -sn, -dfixme, -dduplicate-code]
- repo: https://github.com/fsfe/reuse-tool
rev: v1.1.2
rev: v2.1.0
hooks:
- id: reuse
- repo: https://github.com/qoomon/git-conventional-commits
rev: v2.5.0
rev: v2.6.5
hooks:
- id: conventional-commits
6 changes: 2 additions & 4 deletions capellambse/filehandler/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,15 @@ def write_file(
) -> None:
"""Write a file.
This method is a convenience wrapper around
:meth:`open()`.
This method is a convenience wrapper around :meth:`open()`.
"""
with self.open(path, "wb") as f:
f.write(content)

def read_file(self, path: str | pathlib.PurePosixPath, /) -> bytes:
"""Read a file.
This method is a convenience wrapper around
:meth:`open()`.
This method is a convenience wrapper around :meth:`open()`.
"""
with self.open(path, "rb") as f:
return f.read()
Expand Down

0 comments on commit dca9e94

Please sign in to comment.