Skip to content

Commit 41d32ee

Browse files
Merge pull request #2 from marcelblijleven/feature/migrate-year-2020
Feature/migrate year 2020
2 parents d8b4663 + 3829027 commit 41d32ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+28179
-61
lines changed

.env.template

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,5 @@ dmypy.json
130130

131131
# PyCharm
132132
.idea
133+
134+
.session

.session.template

Whitespace-only changes.

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
# Advent of Code ⭐️
22
[![Stars collected](https://shields.io/static/v1?label=stars%20collected&message=0&color=yellow)]()
33

4-
Collection of my Advent of Code solutions
4+
Collection of my Advent of Code solutions in a slightly overkill project setup 👻.
5+
6+
## Features ✨
7+
- Solutions are timed with the help of a decorator using `time.perf_counter`
8+
- Solution and time are printed to console using the `rich` package with `truecolor`
9+
- Automatic listing of completed solutions in the README
10+
- Automatic changelog, using semantic versioning and the conventional commit specification
11+
- A badge that is updated automatically with the amount of stars I've collected
12+
- Pip installable (`pip install -e .`) with:
13+
- A generate-readme script, which updates the readme
14+
- A run-all script, which dynamically calls every solution in every `adventofcode.year_*.day_*` module
15+
- Type checked (`mypy`) and linted (`flake8`)
16+
- Tested against multiple python versions using `tox` on each push to master and pull request
517

618
<!-- start completed section -->
7-
## Completed
8-
### 2020
919

1020
<!-- end completed section -->
21+
22+
23+
**Note**: _not all years/solutions have been migrated yet from my previous repositories_

requirements_dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ mypy-extensions==0.4.3
55
flake8==4.0.1
66
tox==3.24.4
77
pytest-mock==3.6.1
8+
requests==2.26.0
9+
types-requests==2.26.0

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ zip_safe = no
2525
[options.entry_points]
2626
console_scripts =
2727
generate-readme = adventofcode.scripts.generate_readme:generate_readme
28+
run-all = adventofcode.scripts.runner:run_all
2829

2930
[options.extras_require]
3031
testing =

src/adventofcode/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33

44
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
5+
RUNNING_ALL = False

0 commit comments

Comments
 (0)