Skip to content

armakuni/leap-year-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leap Year Kata

Requirements

Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400. For example, the years 1700, 1800, and 1900 are not leap years, but the years 1600 and 2000 are.

  • 2024 is a leap year - True/False
  • 1821 is not a leap year - Typical Normal Year (Not Divisible by 4)
  • 1600 is a leap year - Divisible by 100
  • 1900 is an atypical non-leap year (Divisible by 100, but not 400)
  • 1500 is a...

Useful commands

Getting poetry using pipx

pipx ensurepath # Make sure you will be able to run `poetry` and not `pipx run poetry`
pipx install poetry

Running the tests

poetry run pytest

Running the linter

poetry run mypy . 
poetry run ruff check . 

Automated fixers

poetry run ruff check --fix . 
poetry run ruff format . 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages