dec96438be
Create word search algorithm ( #8906 )
...
* feat(other): Create word_search algorithm
* updating DIRECTORY.md
* doc(word_search): Link to wikipedia article
* Apply suggestions from code review
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update word_search.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
2023-09-30 00:57:56 -04:00
Caeden Perelli-Harris and github-actions
72f6000365
Fix get amazon product data erroring due to whitespace in headers ( #9009 )
...
* updating DIRECTORY.md
* fix(get-amazon-product-data): Remove whitespace in headers
* refactor(get-amazon-product-data): Don't print to_csv
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-09-05 00:49:00 -04:00
fceacf977f
Fix type errors in permutations ( #9007 )
...
* updating DIRECTORY.md
* types(permuations): Rename permute2
* Apply suggestions from code review
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* fix(permutations): Call permute_recursive
* fix(permutations): Correct permutations order
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
2023-08-22 02:33:47 -07:00
04fd5c1b5e
Create langtons ant algorithm ( #8967 )
...
* updating DIRECTORY.md
* feat(cellular_automata): Langonts ant algorithm
* updating DIRECTORY.md
* Update cellular_automata/langtons_ant.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Apply suggestions from code review
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* fix(langtons-ant): Set funcanimation interval to 1
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
2023-08-21 16:20:51 -07:00
Caeden Perelli-Harris and github-actions
1210559deb
Consolidate decimal to binary iterative and recursive ( #8999 )
...
* updating DIRECTORY.md
* refactor(decimal-to-binary): Consolidate implementations
* updating DIRECTORY.md
* refactor(decimal-to-binary): Rename main and helper recursive
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-08-21 06:25:20 -07:00
Caeden Perelli-Harris and github-actions
945803f65d
Unmark fetch anime and play as BROKEN and fix type errors ( #8988 )
...
* updating DIRECTORY.md
* type(fetch-anime-and-play): Fix type errors and re-enable
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-08-18 05:19:25 -07:00
Caeden Perelli-Harris and github-actions
5f7819e1cd
Fix get top billionaires BROKEN file ( #8970 )
...
* updating DIRECTORY.md
* fix(get-top-billionaires): Handle timestamp before epoch
* updating DIRECTORY.md
* revert(pyproject): Re-implement ignore lru_cache
* fix(age): Update age to current year
* fix(doctest): Make years since dynamic
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-08-18 05:13:38 -07:00
Caeden Perelli-Harris and github-actions
fd7cc4cf8e
Rename norgate to nor_gate to keep consistency ( #8968 )
...
* refactor(boolean-algebra): Rename norgate to nor_gate
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-08-16 18:21:00 -07:00
490e645ed3
Fix minor typing errors in maths/ ( #8959 )
...
* updating DIRECTORY.md
* types(maths): Fix pylance issues in maths
* reset(vsc): Reset settings changes
* Update maths/jaccard_similarity.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* revert(erosion_operation): Revert erosion_operation
* test(jaccard_similarity): Add doctest to test alternative_union
* types(newton_raphson): Add typehints to func bodies
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
2023-08-15 14:27:41 -07:00
Caeden Perelli-Harris and github-actions
fb1b939a89
Consolidate find_min and find_min recursive and find_max and find_max_recursive ( #8960 )
...
* updating DIRECTORY.md
* refactor(min-max): Consolidate implementations
* updating DIRECTORY.md
* refactor(min-max): Append _iterative to func name
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-08-14 04:17:27 -07:00
4b7ecb6a81
Create is valid email address algorithm ( #8907 )
...
* feat(strings): Create is valid email address
* updating DIRECTORY.md
* feat(strings): Create is_valid_email_address algorithm
* chore(is_valid_email_address): Implement changes from code review
* Update strings/is_valid_email_address.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore(is_valid_email_address): Fix ruff error
* Update strings/is_valid_email_address.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-14 01:28:52 -07:00
9d86d4edaa
Create wa-tor algorithm ( #8899 )
...
* feat(cellular_automata): Create wa-tor algorithm
* updating DIRECTORY.md
* chore(quality): Implement algo-keeper bot changes
* Update cellular_automata/wa_tor.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor(repr): Return repr as python object
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
* refactor(display): Rename to display_visually to visualise
* refactor(wa-tor): Use double for loop
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore(wa-tor): Implement suggestions from code review
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Christian Clauss <cclauss@me.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com >
2023-08-13 17:58:17 -07:00
4a83e3f0b1
Fix failing build due to missing requirement ( #8900 )
...
* feat(cellular_automata): Create wa-tor algorithm
* updating DIRECTORY.md
* chore(quality): Implement algo-keeper bot changes
* build: Fix broken ci
* git rm cellular_automata/wa_tor.py
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Christian Clauss <cclauss@me.com >
2023-07-28 20:12:31 +02:00
Caeden Perelli-Harris
9e08c7726d
Small docstring time complexity fix in number_container _system ( #8875 )
...
* fix: Write time is O(log n) not O(n log n)
* chore: Update pre-commit ruff version
* revert: Undo previous commit
2023-07-22 12:34:19 +02:00
93fb169627
[Upgrade Ruff] Fix all errors raised from ruff ( #8879 )
...
* chore: Fix tests
* chore: Fix failing ruff
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* chore: Fix ruff errors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* chore: Fix ruff errors
* chore: Fix ruff errors
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update cellular_automata/game_of_life.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* chore: Update ruff version in pre-commit
* chore: Fix ruff errors
* Update edmonds_karp_multiple_source_and_sink.py
* Update factorial.py
* Update primelib.py
* Update min_cost_string_conversion.py
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2023-07-22 12:05:10 +02:00
Caeden Perelli-Harris and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
44b1bcc7c7
Fix failing tests from ruff/newton_raphson (ignore S307 "possibly insecure function") ( #8862 )
...
* chore: Fix failing tests (ignore S307 "possibly insecure function")
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: Move noqa back to right line
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-11 11:51:21 +02:00
daa0c8f3d3
Create count negative numbers in matrix algorithm ( #8813 )
...
* updating DIRECTORY.md
* feat: Count negative numbers in sorted matrix
* updating DIRECTORY.md
* chore: Fix pre-commit
* refactor: Combine functions into iteration
* style: Reformat reference
* feat: Add timings of each implementation
* chore: Fix problems with algorithms-keeper bot
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* test: Remove doctest from benchmark function
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update matrix/count_negative_numbers_in_sorted_matrix.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* refactor: Use sum instead of large iteration
* refactor: Use len not sum
* Update count_negative_numbers_in_sorted_matrix.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2023-06-10 14:21:49 +02:00
7775de0ef7
Create number container system algorithm ( #8808 )
...
* feat: Create number container system algorithm
* updating DIRECTORY.md
* chore: Fix failing tests
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update other/number_container_system.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* chore: Add more tests
* chore: Create binary_search_insert failing test
* type: Update typehints to accept str, list and range
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Christian Clauss <cclauss@me.com >
2023-06-08 14:40:38 +02:00
Caeden Perelli-Harris
80d95fccc3
Pytest locally fails due to API_KEY env variable ( #8738 )
...
* fix: Pytest locally fails due to API_KEY env variable (#8737 )
* chore: Fix ruff errors
2023-06-03 18:16:33 +02:00
cfbbfd9896
Merge and add benchmarks to palindrome algorithms in the strings/ directory ( #8749 )
...
* refactor: Merge and add benchmarks to palindrome
* updating DIRECTORY.md
* chore: Fix failing tests
* Update strings/palindrome.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update palindrome.py
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Christian Clauss <cclauss@me.com >
2023-05-25 12:56:23 +02:00
Caeden Perelli-Harris and github-actions
df88771905
Mark fetch anime and play as broken ( #8763 )
...
* updating DIRECTORY.md
* updating DIRECTORY.md
* fix: Correct ruff errors
* fix: Mark anime algorithm as broken
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-05-25 07:59:15 +02:00
Caeden Perelli-Harris
9b3e4028c6
Fixes broken "Create guess_the_number_search.py" ( #8746 )
2023-05-17 18:47:23 +12:00
Caeden Perelli-Harris and github-actions
1faf10b5c2
Correct ruff failures ( #8732 )
...
* fix: Correct ruff problems
* updating DIRECTORY.md
* fix: Fix pre-commit errors
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2023-05-14 22:03:13 +01:00
Caeden Perelli-Harris
c00af459fe
feat: Concatenate both factorial implementations ( #8099 )
...
* feat: Concatenate both factorial implementations
* fix: Rename factorial recursive method
2023-01-26 08:12:11 +01:00
Caeden Perelli-Harris and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
4939e8463f
Create cached fibonacci algorithm ( #8084 )
...
* feat: Add `fib_recursive_cached` func
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* doc: Show difference in time when caching algorithm
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-07 17:56:39 +01:00
daa1c7529a
Raise error not string ( #7945 )
...
* ci: Add `B023` to `.flake8` ignores
* refactor: Return `bool`/raise Exception
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* revert: Remove previous branch commit
* Update data_structures/binary_tree/segment_tree_other.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* feat: Apply `__repr__` changes
* chore: Fix failing tests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/segment_tree_other.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* test: Fix doctests
* random.choice(population_score[:N_SELECTED])[0]
* Update basic_string.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-11-06 15:54:44 +01:00
598f6a26a1
refactor: Condense password related files in one ( #7939 )
...
* refactor: Condense `password` related files in one
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update other/password.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* dynamic_programming
* test: Make test input `str`
* requirements.txt: Remove cython>=0.29.28 # For statsmodels on Python 3.11
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-11-02 17:20:57 +01:00
Caeden Perelli-Harris and Christian Clauss
f512b4d105
refactor: Move pascals triange to maths/ ( #7932 )
...
* refactor: Move pascals triange to maths/
* Update xgboost_classifier.py
* statsmodels is now compatible with Python 3.11
* statsmodels is now compatible with Python 3.11
* cython>=0.29.28
* cython>=0.29.28 # For statsmodels on Python 3.11
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-11-01 20:25:39 +01:00
Caeden Perelli-Harris and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7d139ee7f1
refactor(abs): Condense abs_min and abs_max ( #7881 )
...
* refactor(abs): Condense `abs_min` and `abs_max`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-01 07:50:43 +01:00
Caeden Perelli-Harris
48a73a28d4
fix(quantum): Correct simulator deprecation ( #7869 )
2022-10-30 11:11:29 +01:00
25757e697c
Binary tree path sum ( #7748 )
...
* feat: Implement binary tree path sum (#7135 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/binary_tree_path_sum.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* refactor: Rename `dfs` to `depth_first_search`
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-10-27 23:03:01 +02:00
Caeden Perelli-Harris and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
61eedc16c3
Remove useless code in doctests ( #7733 )
...
* refactor: Fix matrix display deprecation
* refactor: Remove useless `print` and `pass` statements
* revert: Replace broken doctests
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* revert: Fix failing doctests
* chore: Satisfy pre-commit
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-27 22:52:00 +02:00
Caeden Perelli-Harris
9bba42eca8
refactor: Indent ... for visual purposes ( #7744 )
2022-10-27 19:42:30 +02:00
Caeden Perelli-Harris
e8915097c4
refactor: Fix matrix display deprecation ( #7729 )
2022-10-27 15:15:15 +02:00
Caeden Perelli-Harris
10b6e7a658
fix: Fix line too long in doctest ( #7566 )
2022-10-23 17:14:45 +02:00
Caeden Perelli-Harris
393b960525
refactor: Replace doctest traceback with ... ( #7558 )
2022-10-23 16:36:10 +02:00
Caeden Perelli-Harris
d5f322f576
fix: Replace deprecated qasm_simulator with aer_simulator ( #7308 ) ( #7556 )
2022-10-23 18:36:12 +05:30
Caeden Perelli-Harris
a0cbc2056e
refactor: Make code more simple in maclaurin_series ( #7522 )
2022-10-23 13:01:51 +02:00
Caeden Perelli-Harris
a34b756fd4
ci: Add `yesqa (flake8-plugin) to pre-commit` ( #7340 )
2022-10-16 22:51:40 +02:00
Caeden Perelli-Harris and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
f15cc2f01c
Follow Flake8 pep3101 and remove modulo formatting ( #7339 )
...
* ci: Add ``flake8-pep3101`` plugin to ``pre-commit``
* refactor: Remove all modulo string formatting
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: Remove ``flake8-pep3101`` plugin from ``pre-commit``
* revert: Revert to modulo formatting
* refactor: Use f-string instead of `join`
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-16 22:50:11 +02:00
Caeden Perelli-Harris
6d20e2b750
Add flake8-broken-line to pre-commit ( #7338 )
...
* ci: Add ``flake8-broken-line`` plugin to ``pre-commit``
* refactor: Fix errors from ``flake8-broken-line``
2022-10-16 21:50:48 +02:00
c6582b35bf
refactor: Move constants outside of variable scope ( #7262 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com >
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-10-16 15:03:29 +05:30
Caeden and Dhruv Manilawala
c94e215c8d
types: Update binary search tree typehints ( #7197 )
...
* types: Update binary search tree typehints
* refactor: Don't return `self` in `:meth:insert`
* test: Fix failing doctests
* Apply suggestions from code review
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com >
2022-10-16 00:51:23 +02:00
Caeden
a652905b60
Add Flake8 comprehensions to pre-commit ( #7235 )
...
* ci(pre-commit): Add ``flake8-comprehensions`` to ``pre-commit`` (#7233 )
* refactor: Fix ``flake8-comprehensions`` errors
* fix: Replace `map` with generator (#7233 )
* fix: Cast `range` objects to `list`
2022-10-15 19:29:42 +02:00
98a4c24878
feat: Binary tree node sum ( #7020 ) ( #7162 )
...
* feat: Binary tree node sum (#7020 )
* feat: Sum of all nodes in binary tree explanation (#7020 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update data_structures/binary_tree/binary_tree_node_sum.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* refactor: Change replace method with `__iter__` overriding (#7020 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com >
2022-10-15 14:58:09 +02:00
Caeden
6e69181d1f
refactor: Replace list() and dict() calls with literals ( #7198 )
2022-10-15 06:37:03 +05:30
Caeden and pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2058775005
refactor: Make code more understandable ( #7196 )
...
* refactor: Make code more understandable
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-15 00:25:15 +02:00
4d0c830d2c
Add flake8 pluin flake8 bugbear to pre-commit ( #7132 )
...
* ci(pre-commit): Add ``flake8-builtins`` additional dependency to ``pre-commit`` (#7104 )
* refactor: Fix ``flake8-builtins`` (#7104 )
* fix(lru_cache): Fix naming conventions in docstrings (#7104 )
* ci(pre-commit): Order additional dependencies alphabetically (#7104 )
* fix(lfu_cache): Correct function name in docstring (#7104 )
* Update strings/snake_case_to_camel_pascal_case.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update data_structures/stacks/next_greater_element.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update digital_image_processing/index_calculation.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update graphs/prim.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* Update hashes/djb2.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* refactor: Rename `_builtin` to `builtin_` ( #7104 )
* fix: Rename all instances (#7104 )
* refactor: Update variable names (#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`` (#7123 )
* revert: Remove function name changes (#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 <dhruvmanila@gmail.com >
* refactor: Rename `next_` to `next_item` (#7104 )
* ci(pre-commit): Add `flake8` plugin `flake8-bugbear` (#7127 )
* refactor: Follow `flake8-bugbear` plugin (#7127 )
* fix: Correct `knapsack` code (#7127 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Christian Clauss <cclauss@me.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com >
2022-10-13 18:03:06 +02:00
d5a9f649b8
Add flake8-builtins to pre-commit and fix errors ( #7105 )
...
Ignore `A003`
Co-authored-by: Christian Clauss <cclauss@me.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com >
2022-10-13 19:53:59 +05:30
07e991d553
Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions ( #7062 )
...
* ci(pre-commit): Add pep8-naming to `pre-commit` hooks (#7038 )
* refactor: Fix naming conventions (#7038 )
* Update arithmetic_analysis/lu_decomposition.py
Co-authored-by: Christian Clauss <cclauss@me.com >
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor(lu_decomposition): Replace `NDArray` with `ArrayLike` (#7038 )
* chore: Fix naming conventions in doctests (#7038 )
* fix: Temporarily disable project euler problem 104 (#7069 )
* chore: Fix naming conventions in doctests (#7038 )
Co-authored-by: Christian Clauss <cclauss@me.com >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-13 00:54:20 +02:00