This is a starter repository for doing katas in Python.
It uses Poetry for dependency management and Pytest for running tests.
- Python 3.8+
- Poetry
Run make install
to get all dependencies installed
Code formatting can be done using Black.
To lint and auto format all files
make lint
To check formatting of all files
make check
To run all tests
make test
To run all tests in watch mode
make test-watch
A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.
For example:
- 2001 is a typical common year
- 1996 is a typical leap year
- 1900 is an atypical common year
- 2000 is an atypical leap year