Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #74

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: auto-walrus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.285
rev: v0.0.286
hooks:
- id: ruff

Expand All @@ -28,7 +28,7 @@ repos:
- tomli

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.13.1"
rev: "1.1.0"
hooks:
- id: pyproject-fmt

Expand Down
3 changes: 1 addition & 2 deletions advanced/generators/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def chain(*iterables):
for it in iterables:
if not hasattr(it, '__iter__'):
raise TypeError(f"{type(it).__name__} object is not iterable")
for element in it:
yield element
yield from it


class TestChain(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion algorithms/dynamic_programming/lis.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def lis(arr: Any) -> int:
lis = [1] * n

for i in range(1, n):
for j in range(0, i):
for j in range(i):
if arr[i] > arr[j]:
lis[i] = max(lis[i], lis[j] + 1)

Expand Down