Skip to content

Advent of Code 2023 daily programming challenge, christmas themed

License

Notifications You must be signed in to change notification settings

gsancho-99/aoc2023

 
 

Repository files navigation

Advent of Code 2023 README

Advent of Code 2023 daily programming challenge, christmas themed. Website here.

linting: pylint Flake8 Status Code style: black Imports: isort Tests Status Coverage

Version

Current version is 0.1.0 and was set according to Semantic Versioning.

Project's version should be updated, when applicable:

  • In this very file.
  • In the changelog.
  • In the __init__.py file inside aoc2023
  • In the pyproject.toml file.

Prerequisites

Documentation

In order to generate documentation, simply run:

poetry run pdoc -o docs -d google aoc2023

Installation

In order to install the project, simply run:

poetry install

Building

In order to generate a .whl file to distribute the project, simply run:

poetry build

Testing

In order to run project tests, simply run:

poetry run pytest tests --doctest-modules

In order to generate XML and HTML reports, run this instead:

poetry run pytest tests --doctest-modules --junit-xml=reports/junit/junit-test-report.xml --html=reports/junit/html-test-report.html

Execution

To run each day problems, it is needed to provide the adequate input file. For example, for day one:

aoc2023 day1 data/inputs/input_d1.txt

In order to execute the second part of a day's problem, the -p flag can be used:

aoc2023 day1 data/inputs/input_d1.txt -p 2

Help on the executable can be found using -h/--help flag.

Badges generation

To generate project badges, simply ## Building

  • Unit Tests
genbadge tests -i reports/junit/junit-test-report.xml -o reports/badges/junit-tests-badge.svg
  • Flake8
genbadge flake8 -i reports/flake8/flake8stats.txt -o reports/badges/flake8-badge.svg
  • Code Coverage
genbadge coverage -i reports/coverage/cov.xml -o reports/badges/cov-badge.svg

An utility script, called gen-badges.sh has been provided in order to generate them.

License

See license file for more information.

Authors

Maintainer

About

Advent of Code 2023 daily programming challenge, christmas themed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%