Skip to content

Commit 4d0c830

Browse files
CaedenPHcclausspre-commit-ci[bot]dhruvmanila
authoredOct 13, 2022
Add flake8 pluin flake8 bugbear to pre-commit (TheAlgorithms#7132)
* ci(pre-commit): Add ``flake8-builtins`` additional dependency to ``pre-commit`` (TheAlgorithms#7104) * refactor: Fix ``flake8-builtins`` (TheAlgorithms#7104) * fix(lru_cache): Fix naming conventions in docstrings (TheAlgorithms#7104) * ci(pre-commit): Order additional dependencies alphabetically (TheAlgorithms#7104) * fix(lfu_cache): Correct function name in docstring (TheAlgorithms#7104) * Update strings/snake_case_to_camel_pascal_case.py Co-authored-by: Christian Clauss <[email protected]> * Update data_structures/stacks/next_greater_element.py Co-authored-by: Christian Clauss <[email protected]> * Update digital_image_processing/index_calculation.py Co-authored-by: Christian Clauss <[email protected]> * Update graphs/prim.py Co-authored-by: Christian Clauss <[email protected]> * Update hashes/djb2.py Co-authored-by: Christian Clauss <[email protected]> * refactor: Rename `_builtin` to `builtin_` ( TheAlgorithms#7104) * fix: Rename all instances (TheAlgorithms#7104) * refactor: Update variable names (TheAlgorithms#7104) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: Create ``tox.ini`` and ignore ``A003`` (TheAlgorithms#7123) * revert: Remove function name changes (TheAlgorithms#7104) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename tox.ini to .flake8 * Update data_structures/heap/heap.py Co-authored-by: Dhruv Manilawala <[email protected]> * refactor: Rename `next_` to `next_item` (TheAlgorithms#7104) * ci(pre-commit): Add `flake8` plugin `flake8-bugbear` (TheAlgorithms#7127) * refactor: Follow `flake8-bugbear` plugin (TheAlgorithms#7127) * fix: Correct `knapsack` code (TheAlgorithms#7127) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <[email protected]>
1 parent f176786 commit 4d0c830

File tree

71 files changed

+137
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+137
-124
lines changed
 

‎.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ repos:
4040
- --ignore=E203,W503
4141
- --max-complexity=25
4242
- --max-line-length=88
43-
additional_dependencies: [flake8-builtins, pep8-naming]
43+
additional_dependencies:
44+
- flake8-bugbear
45+
- flake8-builtins
46+
- pep8-naming
4447

4548
- repo: https://github.com/pre-commit/mirrors-mypy
4649
rev: v0.982

‎arithmetic_analysis/jacobi_iteration_method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def jacobi_iteration_method(
110110
strictly_diagonally_dominant(table)
111111

112112
# Iterates the whole matrix for given number of times
113-
for i in range(iterations):
113+
for _ in range(iterations):
114114
new_val = []
115115
for row in range(rows):
116116
temp = 0

0 commit comments

Comments
 (0)
Please sign in to comment.