Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (TheAlgorithms#8294)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.255 → v0.0.257](astral-sh/ruff-pre-commit@v0.0.255...v0.0.257)

* Fix PLR1711 Useless  statement at end of function

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
  • Loading branch information
pre-commit-ci[bot] and cclauss authored Mar 20, 2023
1 parent 521fbca commit 3f9150c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion .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/charliermarsh/ruff-pre-commit
rev: v0.0.255
rev: v0.0.257
hooks:
- id: ruff

Expand Down
4 changes: 0 additions & 4 deletions data_structures/binary_tree/avl_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,15 @@ def get_height(self) -> int:

def set_data(self, data: Any) -> None:
self.data = data
return

def set_left(self, node: MyNode | None) -> None:
self.left = node
return

def set_right(self, node: MyNode | None) -> None:
self.right = node
return

def set_height(self, height: int) -> None:
self.height = height
return


def get_height(node: MyNode | None) -> int:
Expand Down
1 change: 0 additions & 1 deletion machine_learning/polymonial_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def viz_polymonial():
plt.xlabel("Position level")
plt.ylabel("Salary")
plt.show()
return


if __name__ == "__main__":
Expand Down

0 comments on commit 3f9150c

Please sign in to comment.