Christian Clauss
abc725f12d
mypy --install-types --non-interactive . ( #4530 )
...
* mypy --install-types --non-interactive .
@dhruvmanila Is this useful/needed given that we do not pin our dependencies?
https://mypy-lang.blogspot.com/2021/06/mypy-0910-released.html
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-23 01:37:18 +08:00
Dhruv Manilawala
daeb6a7e08
fix(action): delete approve workflow as it does not work ( #4453 )
2021-06-10 22:48:40 +05:30
Dhruv Manilawala
32e9072627
fix(action): testing and fixing errors ( #4446 )
...
* fix(action): testing and fixing errors
* fix: testing if all is a valid entry for workflows
* fix: more events to trigger workflow tests
* fix: double quotes -> single quotes
* fix: add workflows name to the list
* revert: remove added events
This reverts commit 3daeeb2ba3
2021-05-21 19:25:59 +05:30
Dhruv Manilawala
ac29f70755
fix(action): correct indentation for types key ( #4445 )
...
* fix(action): correct indentation for types key
* updating DIRECTORY.md
* refactor: add quotes around name key
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-05-21 19:03:56 +05:30
Dhruv Manilawala
92836d57f6
feat: action to approve workflow run ( #4444 )
2021-05-21 14:31:56 +05:30
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
Dhruv Manilawala
c49fa088a0
feat: Add mypy configuration file ( #4315 )
...
* feat: Add mypy config file
* refactor: Remove mypy options from build workflow
* Remove linear_algebra
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-04-06 12:54:26 +02:00
Dhruv Manilawala
8c2986026b
fix(mypy): type annotations for linear algebra algorithms ( #4317 )
...
* fix(mypy): type annotations for linear algebra algorithms
* refactor: remove linear algebra directory from mypy exclude
2021-04-05 15:37:38 +02:00
Dhruv Manilawala
20c7518028
fix(mypy): type annotations for conversions algorithms ( #4314 )
...
* fix(mypy): type annotations for conversions algorithms
* refactor(CI): include conversions algorithms for mypy tests
2021-04-04 15:25:49 +02:00
Dhruv Manilawala
60895366c0
fix(mypy): type annotations for cipher algorithms ( #4306 )
...
* fix(mypy): type annotations for cipher algorithms
* Update mypy workflow to include cipher directory
* fix: mypy errors in hill_cipher.py
* fix build errors
2021-04-04 07:22:12 +02:00
algobytewise
a53fcf221b
[mypy] fix hashes folder ( #4305 )
...
* fix hashes-folder
* Update build.yml
* fix doctests
* return-values to int
* Update hashes/adler32.py
* type hints for elements
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-04-03 13:31:46 +05:30
algobytewise
5229c74955
[mypy] Fix directory arithmetic_analysis ( #4304 )
...
* fix directory arithmetic_analysis
* Update build.yml
* temporary fix for psf/black bug
see https://github.com/psf/black/issues/2079
* Update in_static_equilibrium.py
2021-04-02 09:32:12 +02:00
Christian Clauss
895bca3654
[mypy] Fix web_programming directory ( #4297 )
...
* Update world_covid19_stats.py
* Delete monkeytype_config.py
* updating DIRECTORY.md
* Apply pyannotate suggestions to emails_from_url.py
* mypy web_programming/emails_from_url.py
* super().__init__()
* mypy --ignore-missing-imports web_programming/emails_from_url.py
* Update emails_from_url.py
* self.urls: list[str] = []
* mypy: Fix web_programming directory
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2021-03-31 08:48:07 +05:30
Christian Clauss
c22c7d503b
mypy: Use a --exclude list ( #4296 )
...
* mypy: Use a --exclude list
* Graphics works on my machine
* A few more...
* A few more...
* Update build.yml
2021-03-31 08:32:25 +05:30
algobytewise
35901eb6fe
Move: traversals/binary_tree_traversals.py --> searches/binary_tree_traversal.py ( #4295 )
...
* Rename traversals/binary_tree_traversals.py to searches/binary_tree_traversal.py
* updating DIRECTORY.md
* Delete traversals directory
* Update build.yml
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-27 10:18:48 +01:00
algobytewise
9b60be67af
[mypy] fix small folders 2 ( #4293 )
...
* Update perceptron.py
* Update binary_tree_traversals.py
* fix machine_learning
* Update build.yml
* Update perceptron.py
* Update machine_learning/forecasting/run.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-03-26 12:21:16 +01:00
algobytewise
959507901a
[mypy] fix small folders ( #4292 )
...
* add final else-statement
* fix file_transfer
* fix quantum folder
* fix divide_and_conquer-folder
* Update build.yml
* updating DIRECTORY.md
* Update ripple_adder_classic.py
* Update .github/workflows/build.yml
* removed imports from typing
* removed conversion to string
* Revert "removed conversion to string"
This reverts commit 2f7c4731d1
.
* implemented suggested changes
* Update receive_file.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-03-23 16:51:50 +01:00
algobytewise
a8db5d4b93
[mypy] fix compression folder ( #4290 )
...
* Update lempel_ziv.py
* Update build.yml
* updating DIRECTORY.md
* fix doctest in 2_hidden_layers_neural_network.py
* one more doctest
* simplified tests
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-22 19:24:05 +01:00
Christian Clauss
8d7ef6a7f5
build.yml: Run mypy --ignore-missing-imports ( #4276 )
...
* build.yml: Run mypy --ignore-missing-imports
* pip install mypy
* Remove failing directories
* Add fractals and drop python-m
2021-03-20 07:01:13 +01:00
Christian Clauss
b8a19ccfea
GitHub Actions: fast-fail on black formatting issues ( #4268 )
...
* GitHub Actions: fast-fail on black formatting issues
Give fast feedback to contributors https://github.com/psf/black#github-actions
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-03-20 10:39:56 +05:30
Dhruv Manilawala
ba6310b647
Validate only submitted Project Euler solution ( #3977 )
...
* Update validate solution script to fetch only submitted solution
* Update workflow file with the updated PE script
* Fix: do not fetch `validate_solutions.py` script
* Update script to use the requests package for API calls
* Fix: install requests module
* Pytest ignore scripts/ directory
2020-11-29 23:11:09 +05:30
Dhruv Manilawala
5eb5483d65
Update stalebot to take 5 actions per hour ( #3922 )
...
* Update stalebot to take 5 actions per hour
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-25 13:23:49 +05:30
Christian Clauss
3fdbf9741d
Python 3.9 ( #3926 )
...
* Upgrade to Python 3.9
* pip install wheel for faster builds
* updating DIRECTORY.md
* requirements.txt: tensorflow; python_version < '3.9'
* keras requires tensorflow
* Rename lstm_prediction.py to lstm_prediction.py_tf
* Update requirements.txt
* updating DIRECTORY.md
* Update requirements.txt
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2020-11-24 12:41:10 +01:00
Dhruv Manilawala
f2c1f98a23
Remove workflow file, task checked by the bot ( #3917 )
2020-11-21 16:12:00 +05:30
Dhruv Manilawala
06f01c0eeb
Remove stale action workflow file ( #3915 )
2020-11-21 09:04:49 +05:30
Dhruv Manilawala
fe0f2f32e7
Try the stale bot instead of stale action ( #3906 )
...
* Try the stale bot instead
* Add config file for the stale bot
2020-11-20 11:41:22 +05:30
Dhruv Manilawala
2885a8cd99
Run latest stale action ( #3904 )
2020-11-19 20:09:31 +01:00
Dhruv Manilawala
fe6885926f
Update related to the change in CI testing ( #3903 )
...
* Update README badge for GitHub CI
* Run GitHub CI everyday as was done in Travis
2020-11-19 22:34:57 +05:30
Dhruv Manilawala
b9b7fffcc2
Move CI tests from Travis to GitHub ( #3889 )
...
* Add initial support for moving tests to GitHub
* Add setup Python step in the workflow
* Remove Travis CI config file
* Fix GitHub action file for build to trigger on PR
* Use Python 3.8 as tensorflow is not yet supported
* Fix ciphers.hill_cipher doctest error
* Fix: instagram crawler tests failing on GitHub actions
* Fix floating point errors in doctest
* Small change to test cache
* Apply suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-11-19 22:01:31 +05:30
Dhruv Manilawala
3d7704f0bf
Add config details for the stale action ( #3870 )
2020-11-08 21:31:14 +05:30
Dhruv Manilawala
fdba34f704
Cache pre-commit workflow ( #3863 )
2020-11-05 12:06:59 +01:00
ParamonPlay
c83ecacc31
No issues so far ( #3835 )
...
* Simplify GitHub Actions
* Update stale.yml
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-10-30 15:11:15 +01:00
Gaurav Chaudhari
9eefe681af
fixes : #2969 ( #3756 )
...
Signed-off-by: Gaurav Chaudhari <capristar02@gmail.com>
2020-10-26 08:09:33 +01:00
Dhruv Manilawala
b97529dd88
Move validate_solutions and add durations flag to pytest.ini ( #3704 )
...
* Move PE validate_solutions to scripts/ directory
* Update pytest.ini file with durations settings
* Remove codespell and autoblack workflow file
* Dependent changes to test config files
* Update pytest.ini
2020-10-24 19:07:33 +05:30
Dhruv
5cb41e7820
Create GitHub action only for Project Euler ( #3378 )
...
* Add GitHub action for Project Euler only
* Add second job for Project Euler
* Remove Project Euler jobs from Travis CI
* Fix typo for actions/setup-python
* Rename the workflow file
* Change name of file in workflow
* Remove comments from Travis config file
2020-10-17 08:23:17 +05:30
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
Christian Clauss
fda57d6924
codespell.yml: Remove unused install of flake8 ( #3283 )
...
* codespell.yml: Remove unused install of flake8
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-14 17:02:47 +05:30
mateuszz0000
f164e11db4
Update CODEOWNERS ( #3280 )
...
* Update CODEOWNERS
* Reduce @cclauss notifications during Hacktoberfest
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-10-14 11:05:17 +02:00
Christian Clauss
695217e964
Update CODEOWNERS ( #3235 )
2020-10-12 20:57:55 +05:30
Kushagra Bansal
08c26e667b
Update CODEOWNERS to add my preferences ( #3233 )
...
* Update CODEOWNERS
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-12 16:23:21 +02:00
Christian Clauss
731190842a
CODEOWNERS: Proper spelling of my userid ( #3185 )
...
* CODEOWNERS: Proper spelling of my userid
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-11 15:23:30 +05:30
Dhruv
c961d5541f
Add CODEOWNERS file to TheAlgorithms/Python ( #3147 )
...
* Add CODEOWNERS file
* Commented out the non-assigned directory
2020-10-10 16:38:45 +02:00
Dhruv
b934da4516
Fix pre-commit error in GitHub action file ( #2765 )
2020-10-04 21:16:13 +05:30
Richard Wheatley
3b0169549e
Create auto_close_empty_issues.yml ( #2756 )
...
* Create auto_close_empty_issues.yml
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-10-04 16:20:36 +02:00
Dhruv
acaeb22bbd
Add GitHub action for pre-commit ( #2515 )
...
* Add GitHub action file for pre-commit
* Fix errors exposed by pre-commit hook:
- Remove executable bit from files without shebang. I checked those
file and it was not needed.
- Fix with black
* Apply suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-09-30 15:23:34 +02:00
Dhruv
0a42ae9095
Fix all errors mentioned in pre-commit run ( #2512 )
...
* Fix all errors mentioned in pre-commit run:
- Fix end of file
- Remove trailing whitespace
- Fix files with black
- Fix imports with isort
* Fix errors
2020-09-30 10:38:00 +02:00
YOGESHWARAN R
e6e2dc69d5
Create instagram_crawler.py ( #2509 )
...
* Create instagram_crawler.py
* codespell --ignore-words-list=followings
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update web_programming/instagram_crawler.py
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update instagram_crawler.py
* Add doctests
* fixup! except (json.decoder.JSONDecodeError, KeyError):
* if getenv("CONTINUOUS_INTEGRATION"): return
* Update instagram_crawler.py
* Update web_programming/instagram_crawler.py
Co-authored-by: Dhruv <dhruvmanila@gmail.com>
* added fake_useragent
* Update instagram_crawler.py
* Comment out doctests
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Dhruv <dhruvmanila@gmail.com>
2020-09-29 18:04:55 +02:00
Christian Clauss
db0db01d87
Use self-documenting option instead of cryptic option ( #2487 )
...
* Use self-documenting option instead of cryptic option
@mateuszz0000 Your review, please. Pretend that you do not know what `-L` stands for. How many keystrokes and clicks does it take to confirm the purpose of this option?
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-26 16:54:41 +02:00
Christian Clauss
5f4da5d616
isort --profile black . ( #2181 )
...
* updating DIRECTORY.md
* isort --profile black .
* Black after
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-06 09:44:19 +02:00
Christian Clauss
cd3e8f95a0
isort --profile black --recursive . ( #2170 )
...
* isort --profile black --recursive .
* Update codespell.yml
* typo: vertices
* typo: Explanation
* typo: Explanation
* Fix typos
2020-07-06 08:48:18 +05:30