Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flake8 pluin flake8 bugbear to pre-commit #7132

Merged
merged 26 commits into from
Oct 13, 2022
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6796e27
ci(pre-commit): Add ``flake8-builtins`` additional dependency to ``pr…
CaedenPH Oct 13, 2022
771e65b
refactor: Fix ``flake8-builtins`` (#7104)
CaedenPH Oct 13, 2022
4d8ac3e
fix(lru_cache): Fix naming conventions in docstrings (#7104)
CaedenPH Oct 13, 2022
c69b7d9
ci(pre-commit): Order additional dependencies alphabetically (#7104)
CaedenPH Oct 13, 2022
f13819e
fix(lfu_cache): Correct function name in docstring (#7104)
CaedenPH Oct 13, 2022
fa72f61
Update strings/snake_case_to_camel_pascal_case.py
CaedenPH Oct 13, 2022
1293059
Update data_structures/stacks/next_greater_element.py
CaedenPH Oct 13, 2022
a895249
Update digital_image_processing/index_calculation.py
CaedenPH Oct 13, 2022
eb5524b
Update graphs/prim.py
CaedenPH Oct 13, 2022
89a4005
Update hashes/djb2.py
CaedenPH Oct 13, 2022
f84bcd7
refactor: Rename `_builtin` to `builtin_` ( #7104)
CaedenPH Oct 13, 2022
c8d6d47
fix: Rename all instances (#7104)
CaedenPH Oct 13, 2022
244a3a3
refactor: Update variable names (#7104)
CaedenPH Oct 13, 2022
35787a1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2022
9874c44
ci: Create ``tox.ini`` and ignore ``A003`` (#7123)
CaedenPH Oct 13, 2022
fe0afdb
revert: Remove function name changes (#7104)
CaedenPH Oct 13, 2022
3d39ee9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2022
c46e021
Rename tox.ini to .flake8
dhruvmanila Oct 13, 2022
9f13912
Update data_structures/heap/heap.py
CaedenPH Oct 13, 2022
0d63a42
refactor: Rename `next_` to `next_item` (#7104)
CaedenPH Oct 13, 2022
2e2ce4e
Merge branch 'TheAlgorithms:master' into master
CaedenPH Oct 13, 2022
952d1a2
ci(pre-commit): Add `flake8` plugin `flake8-bugbear` (#7127)
CaedenPH Oct 13, 2022
214befd
refactor: Follow `flake8-bugbear` plugin (#7127)
CaedenPH Oct 13, 2022
0c48669
fix: Correct `knapsack` code (#7127)
CaedenPH Oct 13, 2022
19a1894
Merge branch 'TheAlgorithms:master' into flake8-bugbear
CaedenPH Oct 13, 2022
808ee5d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2022
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
Prev Previous commit
Next Next commit
refactor: Rename next_ to next_item (#7104)
  • Loading branch information
CaedenPH committed Oct 13, 2022
commit 0d63a429f09943c02f095755038e0b9fdc4687cc
6 changes: 3 additions & 3 deletions data_structures/stacks/next_greater_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def next_greatest_element_fast(arr: list[float]) -> list[float]:
"""
result = []
for i, outer in enumerate(arr):
next_: float = -1
next_item: float = -1
for inner in arr[i + 1 :]:
if outer < inner:
next_ = inner
next_item = inner
break
result.append(next_)
result.append(next_item)
return result


Expand Down