Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.79 KB

File metadata and controls

49 lines (32 loc) · 1.79 KB

Python Fun

Playing with Python and Functional Programming (FP) concepts after watching:

The Power of Composition by Scott Wlaschin

The Power of Composition

Content

How do I run the tests?

To type check the code:

docker-compose run python-fun mypy /code --pretty --config-file=pyproject.toml

To run the tests:

docker-compose run python-fun pytest /code/tests -vv -s

Notes

To type check the code, I configured mypy following this article.

I decided to turn-off the mypy rule called warn_return_any to avoid using the # type: ignore comment when using the pipe function.