Skip to content

kpinakula/leap-year-kata-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python kata starter

This is a starter repository for doing katas in Python.

It uses Poetry for dependency management and Pytest for running tests.

Pre-requisites

  • Python 3.8+
  • Poetry

Getting started

Run make install to get all dependencies installed

Linting

Code formatting can be done using Black.

To lint and auto format all files

make lint

To check formatting of all files

make check

Running tests

To run all tests

make test

To run all tests in watch mode

make test-watch

The Kata

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published