Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#186)
Browse files Browse the repository at this point in the history
* chore(deps): update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)

* style: pre-commit fixes

* Update .pre-commit-config.yaml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Mar 13, 2024
1 parent 26ad0b5 commit 472c444
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
additional_dependencies: [black==23.*]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.2"
rev: "v0.3.2"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
files: (src|web|tests)
Expand Down
1 change: 0 additions & 1 deletion src/repo_review/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Review repos with a set of checks defined by plugins.
"""


from __future__ import annotations

from ._version import version as __version__
Expand Down
12 changes: 4 additions & 8 deletions src/repo_review/ghpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@ def name(self) -> str:
return (self.path or self.repo).split("/")[-1]

@typing.overload # type: ignore[override]
def open(self, mode: Literal["r"], encoding: str | None = ...) -> io.StringIO:
...
def open(self, mode: Literal["r"], encoding: str | None = ...) -> io.StringIO: ...

@typing.overload
def open(self, mode: Literal["rb"]) -> io.BytesIO:
...
def open(self, mode: Literal["rb"]) -> io.BytesIO: ...

def open(
self, mode: Literal["r", "rb"] = "r", encoding: str | None = "utf-8"
Expand Down Expand Up @@ -164,12 +162,10 @@ def name(self) -> str:
return self._fake_name

@typing.overload # type: ignore[override]
def open(self, mode: Literal["r"], encoding: str | None = ...) -> io.StringIO:
...
def open(self, mode: Literal["r"], encoding: str | None = ...) -> io.StringIO: ...

@typing.overload
def open(self, mode: Literal["rb"]) -> io.BytesIO:
...
def open(self, mode: Literal["rb"]) -> io.BytesIO: ...

def open(
self, mode: Literal["r", "rb"] = "r", encoding: str | None = "utf-8"
Expand Down
3 changes: 1 addition & 2 deletions src/repo_review/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ class HasFamily(typing.Protocol):
"""

@property
def family(self) -> str:
...
def family(self) -> str: ...


T = TypeVar("T", bound=HasFamily)
Expand Down

0 comments on commit 472c444

Please sign in to comment.