Skip to content

Commit cee0af3

Browse files
committed
Autoupdate .pre-commit-config.yaml
1 parent 94bebca commit cee0af3

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-json
@@ -10,17 +10,17 @@ repos:
1010
- id: trailing-whitespace
1111

1212
- repo: https://github.com/psf/black
13-
rev: 23.1.0
13+
rev: 24.4.2
1414
hooks:
1515
- id: black
1616

1717
- repo: https://github.com/PyCQA/isort
18-
rev: 5.12.0
18+
rev: 5.13.2
1919
hooks:
2020
- id: isort
2121

2222
- repo: https://github.com/PyCQA/flake8
23-
rev: 6.0.0
23+
rev: 7.0.0
2424
hooks:
2525
- id: flake8
2626
additional_dependencies:

src/pypi_simple/progress.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,16 @@ class ProgressTracker(Protocol):
2323
that will be called with the size of each downloaded file chunk.
2424
"""
2525

26-
def __enter__(self) -> Self:
27-
...
26+
def __enter__(self) -> Self: ...
2827

2928
def __exit__(
3029
self,
3130
exc_type: Optional[type[BaseException]],
3231
exc_val: Optional[BaseException],
3332
exc_tb: Optional[TracebackType],
34-
) -> Optional[bool]:
35-
...
33+
) -> Optional[bool]: ...
3634

37-
def update(self, increment: int) -> None:
38-
...
35+
def update(self, increment: int) -> None: ...
3936

4037

4138
class NullProgressTracker:

src/pypi_simple/util.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ def basejoin(base_url: Optional[str], url: str) -> str:
4646

4747
class AbstractDigestChecker(ABC):
4848
@abstractmethod
49-
def update(self, blob: bytes) -> None:
50-
...
49+
def update(self, blob: bytes) -> None: ...
5150

5251
@abstractmethod
53-
def finalize(self) -> None:
54-
...
52+
def finalize(self) -> None: ...
5553

5654

5755
class NullDigestChecker(AbstractDigestChecker):

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ max-doc-length = 100
6767
max-line-length = 80
6868
unused-arguments-ignore-stub-functions = True
6969
extend-select = B901,B902,B950
70-
ignore = A003,B005,E203,E262,E266,E501,U101,W503
70+
ignore = A003,A005,B005,E203,E262,E266,E501,E704,U101,W503
7171
7272
per-file-ignores =
7373
src/pypi_simple/__init__.py:E402

0 commit comments

Comments
 (0)