Skip to content
/ calc-pi Public

Sample Python project. Calculate pi using various algorithms.

License

Notifications You must be signed in to change notification settings

gnkm/calc-pi

Repository files navigation

calc-pi

Test, Lint

Calculate Pi with various algorithms.

Usage

Images: Package calcpi

Make docker image.

bash run/build.sh

Check docker image ID.

docker images | grep calcpi | awk '{print $3}'

Show help.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi

Calculate Pi.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi calc gauss_legendre --accuracy 100 -s

Evaluate each algorithm.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) py -m calcpi evaluate gauss_legendre --accuracy 100

Run pylint.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) lint calcpi

Run flake8.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) flake

Run mypy.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) mypy calcpi

Run test.

bash run/run.sh $(docker images | grep calcpi | awk '{print $3}' | head -1) test

About

Sample Python project. Calculate pi using various algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published