Skip to content

Commit abee856

Browse files
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#11481)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.1](astral-sh/ruff-pre-commit@v0.5.0...v0.5.1) - [github.com/tox-dev/pyproject-fmt: 2.1.3 → 2.1.4](tox-dev/pyproject-fmt@2.1.3...2.1.4) * updating DIRECTORY.md * grid = np.char.chararray((n, n)) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent c76d955 commit abee856

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.pre-commit-config.yaml

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

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.5.0
19+
rev: v0.5.1
2020
hooks:
2121
- id: ruff
2222
- id: ruff-format
@@ -29,7 +29,7 @@ repos:
2929
- tomli
3030

3131
- repo: https://github.com/tox-dev/pyproject-fmt
32-
rev: "2.1.3"
32+
rev: "2.1.4"
3333
hooks:
3434
- id: pyproject-fmt
3535

DIRECTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,7 @@
12601260
* [Can String Be Rearranged As Palindrome](strings/can_string_be_rearranged_as_palindrome.py)
12611261
* [Capitalize](strings/capitalize.py)
12621262
* [Check Anagrams](strings/check_anagrams.py)
1263+
* [Count Vowels](strings/count_vowels.py)
12631264
* [Credit Card Validator](strings/credit_card_validator.py)
12641265
* [Damerau Levenshtein Distance](strings/damerau_levenshtein_distance.py)
12651266
* [Detecting English Programmatically](strings/detecting_english_programmatically.py)

graphs/multi_heuristic_astar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def key(start: TPos, i: int, goal: TPos, g_function: dict[TPos, float]):
7979

8080

8181
def do_something(back_pointer, goal, start):
82-
grid = np.chararray((n, n))
82+
grid = np.char.chararray((n, n))
8383
for i in range(n):
8484
for j in range(n):
8585
grid[i][j] = "*"

0 commit comments

Comments
 (0)