pre-commit-ci[bot]
0a3433eaed
[pre-commit.ci] pre-commit autoupdate ( #6940 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0 )
- [github.com/asottile/pyupgrade: v2.38.2 → v3.0.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.0.0 )
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982 )
* updating DIRECTORY.md
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>
2022-10-10 22:04:33 +02:00
pre-commit-ci[bot]
756bb268eb
[pre-commit.ci] pre-commit autoupdate ( #6629 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0 )
- [github.com/asottile/pyupgrade: v2.37.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.37.0...v2.38.2 )
- https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8
- [github.com/PyCQA/flake8: 3.9.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/3.9.2...5.0.4 )
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.981](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.981 )
- [github.com/codespell-project/codespell: v2.1.0 → v2.2.1](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.1 )
* Fix a long line
* Update sol1.py
* Update sol1.py
* lambda_
* Update multi_level_feedback_queue.py
* Update double_ended_queue.py
* Update sequential_minimum_optimization.py
* Update .pre-commit-config.yaml
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-03 22:00:45 +02:00
Christian Clauss
3d33b36e92
Fix pre-commit.ci: additional_dependencies: [types-requests] ( #6559 )
...
* Fix pre-commit.ci: additional_dependencies: [types-requests==2.28.11]
* updating DIRECTORY.md
* Update .pre-commit-config.yaml
* additional_dependencies: [types-requests]
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-02 21:59:17 +02:00
Christian Clauss
b75a7c77f8
pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 ( #6245 )
...
* pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0
* pre-commit run --all-files
2022-07-11 10:19:52 +02:00
Christian Clauss
0a0f4986e4
Upgrade GitHub Actions ( #6236 )
...
* Upgrade GitHub Actions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-07-07 05:25:25 +02:00
Harshit Agarwal
4064bf45f5
fix(pre-commit): update black
version ( #6075 )
...
black==22.1.0 is breaking the hook. Updating it to 22.3.0 fixes all the issue
Refer: https://github.com/python-poetry/poetry/issues/5375
2022-03-30 08:40:56 +05:30
Christian Clauss
885580b3a1
pyupgrade --py310-plus and run mypy in precommit, not build ( #5996 )
...
* pyupgrade --py310-plus and run mypy in precommit, not build
* pyupgrade --py310-plus web_programming/fetch_well_rx_price.py
* pyupgrade --py310-plus web_programming/fetch_well_rx_price.py
* Fix arithmetic_analysis/in_static_equilibrium.py
* Fix arithmetic_analysis/in_static_equilibrium.py
2022-02-13 11:01:58 +01:00
Christian Clauss
24d3cf8244
The black formatter is no longer beta ( #5960 )
...
* The black formatter is no longer beta
* pre-commit autoupdate
* pre-commit autoupdate
* Remove project_euler/problem_145 which is killing our CI tests
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-01-30 20:29:54 +01:00
Andrew Grangaard
551c65766d
[Mypy] fix other/least_recently_used ( #5814 )
...
* makes LRUCache constructor concrete
* fixes bug in dq_removal in other/least_recently_used
+ deque.remove() operates by value not index
* [mypy] Annotates other/least_recently_used over generic type
+ clean-up: rename key_reference to match type.
* [mypy] updates example to demonstrate LRUCache with complex type
* Adds doctest to other/least_recently_used
* mypy.ini: Remove exclude = (other/least_recently_used.py)
* Various mypy configs
* Delete mypy.ini
* Add mypy to .pre-commit-config.yaml
* mypy --ignore-missing-imports --install-types --non-interactive .
* mypy v0.910
* Pillow=8.3.7
* Pillow==8.3.7
* Pillow==8.3.2
* Update .pre-commit-config.yaml
* Update requirements.txt
* Update pre-commit.yml
* --install-types # See mirrors-mypy README.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-11-16 15:01:17 +01:00
Christian Clauss
477cc3fe59
Add pyupgrade to pre-commit ( #5638 )
...
* Add pyupgrade to pre-commit
* Remove unused imports
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-28 16:45:59 +02:00
Dhruv Manilawala
6f21f76696
fix(ci): Update pre-commit hooks and apply new black ( #4359 )
...
* fix(ci): Update pre-commit hooks and apply new black
* remove empty docstring
2021-04-26 07:46:50 +02:00
algobytewise
0ee8f792e3
Moved "other/anagrams.py" to the string folder ( #4289 )
...
* move&rename, changed code accordingly
* adjusted codespell ignore-list
2021-03-22 11:40:23 +01:00
algobytewise
99a42f2b58
Move files to strings folder ( #4283 )
...
* Move files to strings-folder
* moved the file "words" back to the original folder
* moved "anagram.py" also back
* fix the codespell ignore-list
2021-03-21 12:05:10 +01:00
Christian Clauss
987567360e
Update our pre-commit dependencies ( #4273 )
...
* .pre-commit-config.yaml: mypy directories that pass
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-20 10:42:17 +05:30
boyuuuun
32def4b3c5
add crawl_google_scholar_citation.py ( #3879 )
...
* add crawl_google_scholar_citation.py
* pass flack8
* pass isort
* pass isort
* change comment in main
* modify main code
* delete file
* change how to build url
* add a key 'hl' in params dict
* Update crawl_google_scholar_citation.py
* Create crawl_google_results.py
* codespell: Mater
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-11-13 14:55:23 +01:00
Christian Clauss
7c5cc28ba2
Revert recent changes to .pre-commit-config.yaml ( #3318 )
...
* Revert recent changes to .pre-commit-config.yaml
We must continue to insist that algorithmic functions can not print() as discussed in CONTRIBUTING.md.
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-15 16:50:43 +05:30
Anshraj Shrivastava
e035c6164f
add binary_tree_traversals.py to data_structures ( #3297 )
...
* add binary_tree_traversals.py to data_structures
I have added some interesting binary tree traversing methods.
* Fixed error
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update binary_tree_traversals.py
* Update binary_tree_traversals.py
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update binary_tree_traversals.py
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update binary_tree_traversals.py
* Doctests and type hints
* Add spaces
* Update binary_tree_traversals.py
* black exclude data_structures/binary_tree/binary_tree_traversals.py
* Add spaces again
* Update binary_tree_traversals.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-10-15 13:09:59 +02:00
Christian Clauss
aeb6edc792
.pre-commit-config.yaml: Disable trailing-whitespace fixer ( #3306 )
...
* .pre-commit-config.yaml: Disable trailing-whitespace fixer
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-15 11:11:22 +02:00
Dhruv
44254cf112
Rename Project Euler directories and other dependent changes ( #3300 )
...
* Rename all Project Euler directories:
Reason:
The change was done to maintain consistency throughout the directory
and to keep all directories in sorted order.
Due to the above change, some config files had to be modified:
'problem_22` -> `problem_022`
* Update scripts to pad zeroes in PE directories
2020-10-15 12:43:28 +05:30
Dhruv
ae65f55de3
Add pre-commit hook for TheAlgorithms/Python ( #2511 )
...
* Add pre-commit basic config file
* Add pre-commit to requirements.txt
* Small tweaks and use stable for black
* Fix isort section in pre-commit-config file
* Fix errors and EOF only for Python files
2020-09-30 10:39:14 +02:00