Maxim Smolskiy
516a3028d1
Enable ruff PLR5501 rule ( #11332 )
...
* Enable ruff PLR5501 rule
* [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>
2024-03-28 18:25:41 +01:00
pre-commit-ci[bot]
bc8df6de31
[pre-commit.ci] pre-commit autoupdate ( #11322 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2 )
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0 )
* [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>
2024-03-13 07:52:41 +01:00
Minha, Jeong
f8fe72dc37
Update game_of_life.py ( #4921 )
...
* Update game_of_life.py
docstring error fix
delete no reason delete next_gen_canvas code(local variable)
* Update cellular_automata/game_of_life.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
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-07-31 14:24:12 -07:00
Caeden Perelli-Harris
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
Pronoy Mandal
91cc3a240f
Update game_of_life.py ( #8703 )
...
Rectify spelling in docstring
2023-05-10 21:34:36 +12:00
Tianyi Zheng
cc10b20beb
Remove some print statements within algorithmic functions ( #7499 )
...
* Remove commented-out print statements in algorithmic functions
* Encapsulate non-algorithmic code in __main__
* Remove unused print_matrix function
* Remove print statement in __init__
* Remove print statement from doctest
* Encapsulate non-algorithmic code in __main__
* Modify algorithm to return instead of print
* Encapsulate non-algorithmic code in __main__
* Refactor data_safety_checker to return instead of print
* updating DIRECTORY.md
* updating DIRECTORY.md
* Apply suggestions from code review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
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>
2022-10-22 13:33:51 +02:00
Erwin Junge
d924a8051b
[mypy] Add missing type annotation ( #5491 )
2021-10-22 17:45:30 +08:00
algobytewise
ce99859ad5
Move files to various folders ( #4286 )
...
* Move files to cellular_automata
* Rename other/davis–putnam–logemann–loveland.py to backtracking/davis–putnam–logemann–loveland.py
* Rename other/markov_chain.py to graphs/markov_chain.py
* undid rename: need to fix mypy first
2021-03-22 10:54:04 +01:00