diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a4b35d..e944a3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-json @@ -10,17 +10,17 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: diff --git a/src/repolist/__main__.py b/src/repolist/__main__.py index 3c992ef..99fd2e0 100644 --- a/src/repolist/__main__.py +++ b/src/repolist/__main__.py @@ -122,19 +122,16 @@ def affiliation_validator(s: str) -> str: class Formatter(Protocol): - def __enter__(self) -> Self: - ... + def __enter__(self) -> Self: ... def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None, - ) -> None: - ... + ) -> None: ... - def show(self, repo: Repo) -> None: - ... + def show(self, repo: Repo) -> None: ... @dataclass diff --git a/tox.ini b/tox.ini index 4621db0..f69d29a 100644 --- a/tox.ini +++ b/tox.ini @@ -32,7 +32,7 @@ max-doc-length = 100 max-line-length = 80 unused-arguments-ignore-stub-functions = True extend-select = B901,B902,B950 -ignore = A003,B005,E203,E262,E266,E501,U101,W503 +ignore = A003,A005,B005,E203,E262,E266,E501,E704,U101,W503 [isort] atomic = True