Skip to content

Commit f474f45

Browse files
pre-commit-ci[bot]github-actionscclauss
authored andcommitted
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#11154)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.6](astral-sh/ruff-pre-commit@v0.1.4...v0.1.6) - [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0) - [github.com/tox-dev/pyproject-fmt: 1.4.1 → 1.5.1](tox-dev/pyproject-fmt@1.4.1...1.5.1) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](pre-commit/mirrors-mypy@v1.6.1...v1.7.0) * updating DIRECTORY.md * Update spiral_print.py * Update matrix/spiral_print.py * Update matrix/spiral_print.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
1 parent 3c2925d commit f474f45

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Diff for: .pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.1.4
19+
rev: v0.1.6
2020
hooks:
2121
- id: ruff
2222

2323
- repo: https://github.com/psf/black
24-
rev: 23.10.1
24+
rev: 23.11.0
2525
hooks:
2626
- id: black
2727

@@ -33,7 +33,7 @@ repos:
3333
- tomli
3434

3535
- repo: https://github.com/tox-dev/pyproject-fmt
36-
rev: "1.4.1"
36+
rev: "1.5.1"
3737
hooks:
3838
- id: pyproject-fmt
3939

@@ -51,7 +51,7 @@ repos:
5151
- id: validate-pyproject
5252

5353
- repo: https://github.com/pre-commit/mirrors-mypy
54-
rev: v1.6.1
54+
rev: v1.7.0
5555
hooks:
5656
- id: mypy
5757
args:

Diff for: DIRECTORY.md

-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,6 @@
13101310
* [Fetch Well Rx Price](web_programming/fetch_well_rx_price.py)
13111311
* [Get Amazon Product Data](web_programming/get_amazon_product_data.py)
13121312
* [Get Imdb Top 250 Movies Csv](web_programming/get_imdb_top_250_movies_csv.py)
1313-
* [Get Imdbtop](web_programming/get_imdbtop.py)
13141313
* [Get Ip Geolocation](web_programming/get_ip_geolocation.py)
13151314
* [Get Top Billionaires](web_programming/get_top_billionaires.py)
13161315
* [Get Top Hn Posts](web_programming/get_top_hn_posts.py)

Diff for: matrix/spiral_print.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def spiral_traversal(matrix: list[list]) -> list[int]:
116116
[1, 2, 3, 4, 8, 12, 11, 10, 9, 5, 6, 7] + spiral_traversal([])
117117
"""
118118
if matrix:
119-
return list(matrix.pop(0)) + spiral_traversal(list(zip(*matrix))[::-1])
119+
return list(matrix.pop(0)) + spiral_traversal(list(zip(*matrix))[::-1]) # type: ignore
120120
else:
121121
return []
122122

0 commit comments

Comments
 (0)