MaximSmolskiy
487fa33f32
Merge branch 'master' into enable-ruff-RUF007-rule
2024-04-02 22:29:39 +03:00
Maxim Smolskiy
f5bbea3776
Enable ruff RUF005 rule ( #11344 )
2024-04-02 21:18:47 +02:00
Maxim Smolskiy
f437f92279
Enable ruff INP001 rule ( #11346 )
...
* Enable ruff INP001 rule
* Fix
* Fix
* Fix
* Fix
* Fix
2024-04-02 21:13:56 +02:00
MaximSmolskiy
ce75a04021
Enable ruff RUF007 rule
2024-04-02 20:07:33 +03:00
MaximSmolskiy
f5ed227553
Enable ruff RUF005 rule
2024-04-02 19:59:41 +03:00
Maxim Smolskiy
f8cdb3e948
Enable ruff S105 rule ( #11343 )
...
* Enable ruff S105 rule
* Update web_programming/recaptcha_verification.py
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
2024-04-02 18:44:37 +02:00
Maxim Smolskiy
93fb555e0a
Enable ruff SIM102 rule ( #11341 )
...
* Enable ruff SIM102 rule
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
* [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-04-02 03:27:56 +02:00
Maxim Smolskiy
f8a948914b
Enable ruff NPY002 rule ( #11336 )
2024-04-01 21:39:31 +02:00
Maxim Smolskiy
39daaf8248
Enable ruff RUF100 rule ( #11337 )
2024-04-01 21:36:41 +02:00
Maxim Smolskiy
f2246ce7fd
Enable ruff ICN001 rule ( #11329 )
...
* Enable ruff ICN001 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:03:23 +00:00
Maxim Smolskiy
efb7463cde
Enable ruff PLW0120 rule ( #11330 )
...
Co-authored-by: Christian Clauss <cclauss@me.com>
2024-03-28 18:28:54 +01:00
Maxim Smolskiy
da47d5c88c
Enable ruff N999 rule ( #11331 )
...
* Enable ruff N999 rule
* updating DIRECTORY.md
---------
Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
2024-03-28 18:26:41 +01:00
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
Maxim Smolskiy
b5cb1fba0d
Enable ruff DTZ005 rule ( #11327 )
...
* Enable ruff DTZ005 rule
* Fix other/gauss_easter.py
* Fix
* Fix web_programming/instagram_pic.py
* Fix web_programming/instagram_video.py
* Apply suggestions from code review
* Update instagram_pic.py
* datetime.now(tz=UTC).astimezone()
* .astimezone()
* Fix
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
2024-03-25 21:54:11 +01:00
Maxim Smolskiy
102e9a31b6
Enable ruff DTZ001 rule ( #11326 )
...
* updating DIRECTORY.md
* Enable ruff DTZ001 rule
* Fix other/gauss_easter.py
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
---------
Co-authored-by: MaximSmolskiy <MaximSmolskiy@users.noreply.github.com>
2024-03-25 08:43:24 +01:00
Maxim Smolskiy
a936e94704
Enable ruff ARG001 rule ( #11321 )
...
* Enable ruff ARG001 rule
* Fix dynamic_programming/combination_sum_iv.py
* Fix machine_learning/frequent_pattern_growth.py
* Fix other/davis_putnam_logemann_loveland.py
* Fix other/password.py
* Fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix physics/n_body_simulation.py
* Fix project_euler/problem_145/sol1.py
* Fix project_euler/problem_174/sol1.py
* Fix scheduling/highest_response_ratio_next.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
* Fix
* Fix scheduling/job_sequencing_with_deadline.py
* Fix scheduling/job_sequencing_with_deadline.py
* Fix
* Fix
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-20 15:00:17 +01:00
pre-commit-ci[bot]
ed8d9209da
[pre-commit.ci] pre-commit autoupdate ( #11275 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0 )
* Upgrade pyproject.toml
* Revert sudoku_solver.py RUF017 Avoid quadratic list summation
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2024-02-05 20:48:10 +01:00
pre-commit-ci[bot]
a13e9c2137
[pre-commit.ci] pre-commit autoupdate ( #11146 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.1.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.3...v0.1.4 )
- [github.com/tox-dev/pyproject-fmt: 1.3.0 → 1.4.1](https://github.com/tox-dev/pyproject-fmt/compare/1.3.0...1.4.1 )
* updating DIRECTORY.md
* [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>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-11-07 06:49:09 +06:00
Ed
e3eb9daba4
Add bitap_string_match algo ( #11060 )
...
* Add bitap_string_match algo
* Fix types
* Fix spelling and add ignore word
* Add suggested changes and change return type
* Resolve suggestions
2023-10-29 00:48:50 +02:00
Ope Oluwaferanmi
52a987ea2f
Add docstrings and doctests and fix a bug ciphers/trifid_cipher.py ( #10716 )
...
* Added docstrings,doctests and fixed a bug
* Added docstrings,doctests and fixed a bug
* Added docstrings,doctests and fixed a bug
* Added docstrings and doctests with a bug fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added docstrings and doctests with a bug fix
* Update ciphers/trifid_cipher.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update ciphers/trifid_cipher.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
* Docstrings edit
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update trifid_cipher.py
* Update pyproject.toml
---------
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-10-20 23:28:21 +02:00
Tianyi Zheng
755659a62f
Omit project_euler/
from coverage reports ( #10469 )
...
* Omit project_euler/ and scripts/ from coverage reports
* Add scripts/ back into coverage reports
2023-10-15 17:16:56 +02:00
Christian Clauss
3f094fe49d
Ruff pandas vet ( #10281 )
...
* Python linting: Add ruff rules for Pandas-vet and Pytest-style
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-10-11 14:30:02 -04:00
pre-commit-ci[bot]
895dffb412
[pre-commit.ci] pre-commit autoupdate ( #9543 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.291 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.291...v0.0.292 )
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6 )
- [github.com/tox-dev/pyproject-fmt: 1.1.0 → 1.2.0](https://github.com/tox-dev/pyproject-fmt/compare/1.1.0...1.2.0 )
* updating DIRECTORY.md
* Fix typos in test_min_spanning_tree_prim.py
* Fix typos
* codespell --ignore-words-list=manuel
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-07 21:32:28 +02:00
Christian Clauss
dbaff34572
Fix ruff rules ISC flake8-implicit-str-concat ( #8892 )
2023-07-28 17:53:09 +01:00
Linus M. Henkel
5b0890bd83
Dijkstra algorithm with binary grid ( #8802 )
...
* Create TestShiva
* Delete TestShiva
* Implementation of the Dijkstra-Algorithm in a binary grid
* Update double_ended_queue.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update least_common_multiple.py
* Update sol1.py
* Update pyproject.toml
* Update pyproject.toml
* https://github.com/astral-sh/ruff-pre-commit v0.0.274
---------
Co-authored-by: ShivaDahal99 <130563462+ShivaDahal99@users.noreply.github.com>
Co-authored-by: jlhuhn <134317018+jlhuhn@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>
2023-06-22 13:49:09 +02:00
Christian Clauss
07e6812888
Update .pre-commit-config.yaml ( #8828 )
...
* Update .pre-commit-config.yaml
* [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>
2023-06-20 21:33:16 +05:30
Christian Clauss
4b79d771cd
Add more ruff rules ( #8767 )
...
* Add more ruff rules
* Add more ruff rules
* pre-commit: Update ruff v0.0.269 -> v0.0.270
* Apply suggestions from code review
* Fix doctest
* Fix doctest (ignore whitespace)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-26 09:34:17 +02:00
Maxim Smolskiy
ac111ee463
Reduce the complexity of graphs/bi_directional_dijkstra.py ( #8165 )
...
* Reduce the complexity of graphs/bi_directional_dijkstra.py
* Try to lower the --max-complexity threshold in the file .flake8
* Lower the --max-complexity threshold in the file .flake8
* updating DIRECTORY.md
* updating DIRECTORY.md
* Try to lower max-complexity
* Try to lower max-complexity
* Try to lower max-complexity
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-03-28 23:41:54 +02:00
Genesis
7cdb011ba4
New gitter link added or replaced ( #8551 )
...
* New gitter link added
* ruff==0.0.258
* noqa: S310
* noqa: S310
* Update ruff.yml
* Add Ruff rule S311
* Ruff v0.0.259
* return ("{:08x}" * 5).format(*self.h)
* pickle.load(f) # noqa: S301
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-03-26 17:19:18 +02:00
Christian Clauss
521fbca61c
Replace flake8 with ruff ( #8184 )
2023-03-16 13:31:29 +01:00
Christian Clauss
c96241b5a5
Replace bandit, flake8, isort, and pyupgrade with ruff ( #8178 )
...
* Replace bandit, flake8, isort, and pyupgrade with ruff
* Comment on ruff rules
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-03-15 13:58:25 +01:00
pre-commit-ci[bot]
67676c3b79
[pre-commit.ci] pre-commit autoupdate ( #8149 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/tox-dev/pyproject-fmt: 0.8.0 → 0.9.1](https://github.com/tox-dev/pyproject-fmt/compare/0.8.0...0.9.1 )
- [github.com/pre-commit/mirrors-mypy: v1.0.0 → v1.0.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.0...v1.0.1 )
* [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>
2023-02-21 08:33:44 +01:00
Andrey
a9bd68d96e
Add running doctest to pytest default ( #7840 )
...
* Add default options for pytest
* updating DIRECTORY.md
* Move pytest settings to pyproject.toml
* Move coverage settings to the pyproject.toml
* Return --doctest-continue-on-failure to pytest
* Convert pytest args to list
* Update pyproject.toml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-29 14:27:47 +02:00