Joyce
03e7f37329
[mypy] math/sieve_of_eratosthenes: Add type hints ( #2627 )
...
* add type hints to math/sieve
* add doctest
* math/sieve: remove manual doctest
* add check for negative
* Update maths/sieve_of_eratosthenes.py
* Update sieve_of_eratosthenes.py
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
2020-11-23 11:07:42 +05:30
Christian Clauss
9316e7c014
Set the Python file maximum line length to 88 characters ( #2122 )
...
* flake8 --max-line-length=88
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-16 10:09:19 +02:00
Christian Clauss
1f8a21d727
Tighten up psf/black and flake8 ( #2024 )
...
* Tighten up psf/black and flake8
* Fix some tests
* Fix some E741
* Fix some E741
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-05-22 08:10:11 +02:00
Christian Clauss
28419cf839
pyupgrade --py37-plus **/*.py ( #1654 )
...
* pyupgrade --py37-plus **/*.py
* fixup! Format Python code with psf/black push
2020-01-03 22:25:36 +08:00
obelisk0114
46bc6738d7
Add doctest to maths/sieve_of_eratosthenes.py and remove other/finding_primes.py ( #1078 )
...
Both of the two files implemented sieve of eratosthenes.
However, there was a bug in other/finding_primes.py, and the time complexity was larger than the other.
Therefore, remove other/finding_primes.py and add doctest tomaths/sieve_of_eratosthenes.py.
2019-07-26 12:25:38 +02:00
Christian Clauss
93fdc9f2a1
Travis CI: Add pytest --doctest-modules maths ( #1020 )
...
* Travis CI: Add pytest --doctest-modules maths
* Update lucas_series.py
* Update lucas_series.py
2019-07-21 11:46:28 +05:30
PatOnTheBack
897f1d0fb4
Improved Formatting and Style of Math Algos ( #960 )
...
* Improved Formatting and Style
I improved formatting and style to make PyLama happier.
Linters used:
- mccabe
- pep257
- pydocstyle
- pep8
- pycodestyle
- pyflakes
- pylint
- isort
* Create volume.py
This script calculates the volumes of various shapes.
* Delete lucasSeries.py
* Revert "Delete lucasSeries.py"
This reverts commit 64c19f7a6c
.
* Update lucasSeries.py
2019-07-10 22:09:24 +02:00
Alex Brown
ea2ddaaf6a
all valid python 3
2018-10-20 14:45:08 -05:00
Alex Brown
91fccecb56
snake_case all the things
2018-10-19 17:14:25 -05:00