Giter VIP home page Giter VIP logo

aoc2022's Introduction

My solutions for Advent of Code 2022

Setup

After cloning this repository, create a virtual environment, activate it, and install.

$ cd aoc2022
aoc2022 $ python3 -m venv venv
aoc2022 $ . venv/bin/activate
(venv) aoc2022 $ pip install -e .[test]

Create new daily workspace

(venv) aoc2022 $ newday 1

Run daily solutions

(venv) [vmorris@tpp53 aoc2022]$ python aoc2022/day01/solution.py 
69626
206780

Test Suite

Run individual days with pytest tests/test_day##.py

(venv) [vmorris@tpp53 aoc2022]$ pytest --cov=aoc2022
=============================== test session starts ===============================
platform linux -- Python 3.11.0, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/vmorris/git/github.com/vmorris/aoc2022
plugins: cov-4.0.0
collected 14 items                                                                

tests/test_day01.py ..                                                      [ 14%]
tests/test_day02.py ..                                                      [ 28%]
tests/test_day03.py ..                                                      [ 42%]
tests/test_day04.py ..                                                      [ 57%]
tests/test_day05.py ..                                                      [ 71%]
tests/test_day06.py ..                                                      [ 85%]
tests/test_day07.py ..                                                      [100%]

---------- coverage: platform linux, python 3.11.0-final-0 -----------
Name                        Stmts   Miss  Cover
-----------------------------------------------
aoc2022/day01/solution.py      24      0   100%
aoc2022/day02/solution.py      75     24    68%
aoc2022/day03/solution.py      23      0   100%
aoc2022/day04/solution.py      20      0   100%
aoc2022/day05/solution.py      47      0   100%
aoc2022/day06/solution.py      14      0   100%
aoc2022/day07/solution.py      50      1    98%
aoc2022/util.py                26     10    62%
-----------------------------------------------
TOTAL                         279     35    87%


=============================== 14 passed in 0.11s ================================

aoc2022's People

Contributors

vmorris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.