adventofcode 23.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ deploy:
12
+
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ python-version: ["3.12"]
17
+
18
+ environment: release
19
+ permissions:
20
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v4
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+ cache: 'pip'
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install hatch
33
+ - name: Build package
34
+ run: hatch build
35
+ - name: Test package
36
+ run: hatch run test
37
+ env:
38
+ FLAKYTEST_SECRET_TOKEN: ${{ secrets.FLAKYTEST_SECRET_TOKEN }}
39
+ - name: Publish package distributions to PyPI
40
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,2 @@
1
+ dist
2
+ .cache.db
@@ -0,0 +1,16 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v4.5.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: end-of-file-fixer
9
+ - id: check-yaml
10
+ - id: check-added-large-files
11
+ - repo: https://github.com/astral-sh/ruff-pre-commit
12
+ # Ruff version.
13
+ rev: v0.1.7
14
+ hooks:
15
+ - id: ruff
16
+ - id: ruff-format
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Calendar Versioning](https://calver.org).
7
+
8
+ ## [23.0b1]
9
+
10
+ ### Added
11
+
12
+ * `assert_p1` and `assert_p2` methods to `AoC` class. Used for easily asserting your solutions against sample inputs.
13
+ * `part_1`, `part_2` optional arguments to the `AoC` class. Used to pass in a Callable that will return the correct result for the given input. The callable will be called by `assert_p1`, `assert_p2`, `submit_p1` and `submit_p2` methods.
14
+ * `part_1_no_splitlines` and `part_2_no_splitlines` optional arguments to `AoC` class. Used as an alternative to `part_1` and `part_2` for the rare cases when the input should not be split into lines.
15
+
16
+
17
+ ## [2023.0b0] - 2023-12-07
18
+
19
+ Initial release
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Anže Pečar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.1
2
+ Name: adventofcode
3
+ Version: 23.0b1
4
+ Summary: Helper utilities for solving Advent of Code puzzles
5
+ Project-URL: Documentation, https://github.com/anze3db/adventofcode#readme
6
+ Project-URL: Issues, https://github.com/anze3db/adventofcode/issues
7
+ Project-URL: Source, https://github.com/anze3db/adventofcode
8
+ Project-URL: Mastodon, https://fosstodon.org/@anze3db
9
+ Project-URL: Twitter, https://twitter.com/anze3db
10
+ Author-email: Anže Pečar <anze@pecar.me>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: Implementation :: CPython
21
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
22
+ Requires-Python: >=3.8
23
+ Requires-Dist: beautifulsoup4
24
+ Requires-Dist: percache
25
+ Requires-Dist: python-dotenv
26
+ Requires-Dist: requests
27
+ Requires-Dist: rich
28
+ Description-Content-Type: text/markdown
29
+
30
+ # adventofcode
31
+
32
+ Helper utilities for solving Advent of Code puzzles.
33
+
34
+ * No copy-pasting puzzle inputs into files.
35
+ * No need to use low-level file APIs to read your inputs.
36
+ * Performance reports for example inputs and puzzle inputs.
37
+ * Submit the answer immediately when your code returns the result 🏎️
38
+
39
+ ## Usage
40
+
41
+ ### Install the package
42
+
43
+ Install the package with pip:
44
+ ```bash
45
+ pip install adventofcode
46
+ ```
47
+
48
+ ### Set your session cookie
49
+
50
+ Add the [adventofcode.com](https://adventofcode.com) session cookie value to your env:
51
+
52
+ ```bash
53
+ export AOC_SESSION="..."
54
+ ```
55
+
56
+ Alternatively, you can save your `AOC_SESSION="******"` value in a `.env` file.
57
+
58
+ > [!NOTE]
59
+ > Setting AOC_SESSION will allow you to get your personal puzzle output (`aoc.get_input()`) and submit your answers with `aoc.submit_p1()` and `aoc.submit_p2()`.
60
+
61
+ ### Use a template to solve puzzles
62
+
63
+ I use the following template to start solving puzzles, see my examples in [my repo for 2023](https://github.com/anze3db/adventofcode2023).
64
+
65
+ ```python
66
+ from adventofcode import AoC
67
+
68
+
69
+ def part1(inp):
70
+ return None
71
+
72
+
73
+ def part2(inp):
74
+ return None
75
+
76
+
77
+ aoc = AoC(part_1=part1, part_2=part2)
78
+ inp = """sample input"""
79
+ # Run your part1 function with sample input and assert the expected result:
80
+ aoc.assert_p1(inp, 42)
81
+ # Run your part1 function on puzzle input and submit the answer returned:
82
+ aoc.submit_p1()
83
+
84
+ # Run your part2 function with sample input and assert the expected result:
85
+ aoc.assert_p2(inp, 6*7)
86
+ # Run your part2 function on puzzle input and submit the answer returned:
87
+ aoc.submit_p2()
88
+ ```
89
+
90
+ > [!NOTE]
91
+ > All submissions and fetched results are cached locally in the `.cache.db` file so that we don't spam the AoC servers or resubmit the same answer multiple times.
92
+
93
+ ### Or build your workflow using the AoC class
94
+
95
+ ```python
96
+ from adventofcode import AoC
97
+
98
+ aoc = AoC() # defaults to current year and parses the day from the filename (e.g. 01.py will be day 1)
99
+
100
+ aoc.print_p1() # prints the first part of the puzzle
101
+ inp = aoc.get_input() # returns the input as a string
102
+ # solve the puzzle here
103
+ ...
104
+ aoc.submit_p1('part 1 answer') # submits the answer to the first part of the puzzle
105
+ aoc.print_p2() # prints the second part of the puzzle
106
+ # solve the puzzle here
107
+ ...
108
+ aoc.submit_p2('part 2 answer') # submits the answer to the second part of the puzzle
109
+ ```
@@ -0,0 +1,80 @@
1
+ # adventofcode
2
+
3
+ Helper utilities for solving Advent of Code puzzles.
4
+
5
+ * No copy-pasting puzzle inputs into files.
6
+ * No need to use low-level file APIs to read your inputs.
7
+ * Performance reports for example inputs and puzzle inputs.
8
+ * Submit the answer immediately when your code returns the result 🏎️
9
+
10
+ ## Usage
11
+
12
+ ### Install the package
13
+
14
+ Install the package with pip:
15
+ ```bash
16
+ pip install adventofcode
17
+ ```
18
+
19
+ ### Set your session cookie
20
+
21
+ Add the [adventofcode.com](https://adventofcode.com) session cookie value to your env:
22
+
23
+ ```bash
24
+ export AOC_SESSION="..."
25
+ ```
26
+
27
+ Alternatively, you can save your `AOC_SESSION="******"` value in a `.env` file.
28
+
29
+ > [!NOTE]
30
+ > Setting AOC_SESSION will allow you to get your personal puzzle output (`aoc.get_input()`) and submit your answers with `aoc.submit_p1()` and `aoc.submit_p2()`.
31
+
32
+ ### Use a template to solve puzzles
33
+
34
+ I use the following template to start solving puzzles, see my examples in [my repo for 2023](https://github.com/anze3db/adventofcode2023).
35
+
36
+ ```python
37
+ from adventofcode import AoC
38
+
39
+
40
+ def part1(inp):
41
+ return None
42
+
43
+
44
+ def part2(inp):
45
+ return None
46
+
47
+
48
+ aoc = AoC(part_1=part1, part_2=part2)
49
+ inp = """sample input"""
50
+ # Run your part1 function with sample input and assert the expected result:
51
+ aoc.assert_p1(inp, 42)
52
+ # Run your part1 function on puzzle input and submit the answer returned:
53
+ aoc.submit_p1()
54
+
55
+ # Run your part2 function with sample input and assert the expected result:
56
+ aoc.assert_p2(inp, 6*7)
57
+ # Run your part2 function on puzzle input and submit the answer returned:
58
+ aoc.submit_p2()
59
+ ```
60
+
61
+ > [!NOTE]
62
+ > All submissions and fetched results are cached locally in the `.cache.db` file so that we don't spam the AoC servers or resubmit the same answer multiple times.
63
+
64
+ ### Or build your workflow using the AoC class
65
+
66
+ ```python
67
+ from adventofcode import AoC
68
+
69
+ aoc = AoC() # defaults to current year and parses the day from the filename (e.g. 01.py will be day 1)
70
+
71
+ aoc.print_p1() # prints the first part of the puzzle
72
+ inp = aoc.get_input() # returns the input as a string
73
+ # solve the puzzle here
74
+ ...
75
+ aoc.submit_p1('part 1 answer') # submits the answer to the first part of the puzzle
76
+ aoc.print_p2() # prints the second part of the puzzle
77
+ # solve the puzzle here
78
+ ...
79
+ aoc.submit_p2('part 2 answer') # submits the answer to the second part of the puzzle
80
+ ```
@@ -0,0 +1,160 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "adventofcode"
7
+ dynamic = ["version"]
8
+ description = 'Helper utilities for solving Advent of Code puzzles'
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = "MIT"
12
+ keywords = []
13
+ authors = [
14
+ { name = "Anže Pečar", email = "anze@pecar.me" },
15
+ ]
16
+ classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Programming Language :: Python",
19
+ "Programming Language :: Python :: 3.8",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: Implementation :: CPython",
25
+ "Programming Language :: Python :: Implementation :: PyPy",
26
+ ]
27
+ dependencies = [
28
+ "requests",
29
+ "percache",
30
+ "beautifulsoup4",
31
+ "python-dotenv",
32
+ "rich",
33
+ ]
34
+
35
+ [project.urls]
36
+ Documentation = "https://github.com/anze3db/adventofcode#readme"
37
+ Issues = "https://github.com/anze3db/adventofcode/issues"
38
+ Source = "https://github.com/anze3db/adventofcode"
39
+ Mastodon = "https://fosstodon.org/@anze3db"
40
+ Twitter = "https://twitter.com/anze3db"
41
+
42
+ [tool.hatch.version]
43
+ path = "src/adventofcode/__about__.py"
44
+
45
+ [tool.hatch.envs.default]
46
+ dependencies = [
47
+ "coverage[toml]>=6.5",
48
+ "pytest",
49
+ "flakytest"
50
+ ]
51
+ [tool.hatch.envs.default.scripts]
52
+ test = "pytest {args:tests}"
53
+ test-cov = "coverage run -m pytest {args:tests}"
54
+ cov-report = [
55
+ "- coverage combine",
56
+ "coverage report",
57
+ ]
58
+ cov = [
59
+ "test-cov",
60
+ "cov-report",
61
+ ]
62
+
63
+ [[tool.hatch.envs.all.matrix]]
64
+ python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
65
+
66
+ [tool.hatch.envs.lint]
67
+ detached = true
68
+ dependencies = [
69
+ "ruff>=0.1.6",
70
+ ]
71
+ [tool.hatch.envs.lint.scripts]
72
+ typing = "mypy --install-types --non-interactive {args:src/adventofcode tests}"
73
+ style = [
74
+ "ruff {args:.}",
75
+ "ruff format --check {args:.}",
76
+ ]
77
+ fmt = [
78
+ "ruff format {args:.}",
79
+ "ruff --fix {args:.}",
80
+ "style",
81
+ ]
82
+ all = [
83
+ "style",
84
+ "typing",
85
+ ]
86
+
87
+ [tool.ruff]
88
+ target-version = "py38"
89
+ line-length = 120
90
+ select = [
91
+ "A",
92
+ "ARG",
93
+ "B",
94
+ "C",
95
+ "DTZ",
96
+ "E",
97
+ "EM",
98
+ "F",
99
+ "FBT",
100
+ "I",
101
+ "ICN",
102
+ "ISC",
103
+ "N",
104
+ "PLC",
105
+ "PLE",
106
+ "PLR",
107
+ "PLW",
108
+ "Q",
109
+ "RUF",
110
+ "S",
111
+ "T",
112
+ "TID",
113
+ "UP",
114
+ "W",
115
+ "YTT",
116
+ ]
117
+ ignore = [
118
+ # Allow non-abstract empty methods in abstract base classes
119
+ "B027",
120
+ # Allow boolean positional values in function calls, like `dict.get(... True)`
121
+ "FBT003",
122
+ # Ignore checks for possible passwords
123
+ "S105", "S106", "S107",
124
+ # Ignore complexity
125
+ "C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
126
+ "S101", "PLR2004", "ISC001"
127
+ ]
128
+ unfixable = [
129
+ # Don't touch unused imports
130
+ "F401",
131
+ ]
132
+
133
+ [tool.ruff.isort]
134
+ known-first-party = ["adventofcode"]
135
+
136
+ [tool.ruff.flake8-tidy-imports]
137
+ ban-relative-imports = "all"
138
+
139
+ [tool.ruff.per-file-ignores]
140
+ # Tests can use magic values, assertions, and relative imports
141
+ "tests/**/*" = ["PLR2004", "S101", "TID252"]
142
+
143
+ [tool.coverage.run]
144
+ source_pkgs = ["adventofcode", "tests"]
145
+ branch = true
146
+ parallel = true
147
+ omit = [
148
+ "src/adventofcode/__about__.py",
149
+ ]
150
+
151
+ [tool.coverage.paths]
152
+ adventofcode = ["src/adventofcode", "*/adventofcode/src/adventofcode"]
153
+ tests = ["tests", "*/adventofcode/tests"]
154
+
155
+ [tool.coverage.report]
156
+ exclude_lines = [
157
+ "no cov",
158
+ "if __name__ == .__main__.:",
159
+ "if TYPE_CHECKING:",
160
+ ]
File without changes
@@ -0,0 +1 @@
1
+ __version__ = "23.0b1"
@@ -0,0 +1,183 @@
1
+ import datetime
2
+ import os
3
+ import re
4
+ import sys
5
+ import time
6
+ from contextlib import contextmanager
7
+ from pathlib import Path
8
+ from typing import Any, Callable
9
+
10
+ import percache
11
+ import requests
12
+ from bs4 import BeautifulSoup
13
+ from dotenv import load_dotenv
14
+ from rich.console import Console
15
+
16
+ load_dotenv()
17
+ cache = percache.Cache(".cache", livesync=True)
18
+ console = Console()
19
+
20
+ AOC_URL = "https://adventofcode.com"
21
+
22
+
23
+ AOC_SESSION = os.getenv("AOC_SESSION")
24
+
25
+ AOC_NOT_SET_MSG = (
26
+ "Set AOC_SESSION env variable to your session cookie on adventofcode.com (export AOC_SESSION='your session cookie')"
27
+ )
28
+
29
+
30
+ @contextmanager
31
+ def print_perf(typ=""):
32
+ t0 = time.perf_counter()
33
+ yield
34
+ diff = time.perf_counter() - t0
35
+ console.log(f"{diff:.5f}s for {typ}")
36
+
37
+
38
+ class AoC:
39
+ def __init__(
40
+ self,
41
+ day: int | None = None,
42
+ year: int | None = None,
43
+ *,
44
+ part_1: Callable[[list[str]], Any] | None = None,
45
+ part_2: Callable[[list[str]], Any] | None = None,
46
+ part_1_no_splitlines: Callable[[str], Any] | None = None,
47
+ part_2_no_splitlines: Callable[[str], Any] | None = None,
48
+ ):
49
+ if day is None:
50
+ current_filename = Path(sys.argv[0]).stem
51
+ current_filename_numbers = re.sub(r"[^0-9.]", "", current_filename)
52
+ day = int(current_filename_numbers)
53
+ if year is None:
54
+ year = datetime.datetime.now(tz=datetime.timezone.utc).year
55
+
56
+ console.log(f"Solving {day=} {year=}")
57
+ self.day = day
58
+ self.year = year
59
+ self.part_1 = part_1
60
+ self.part_2 = part_2
61
+ self.part_1_no_splitlines = part_1_no_splitlines
62
+ self.part_2_no_splitlines = part_2_no_splitlines
63
+
64
+ def print_p1(self):
65
+ console.log(get_puzzle(self.day, self.year, part=1))
66
+
67
+ def print_p2(self):
68
+ console.log(get_puzzle(self.day, self.year, part=2))
69
+
70
+ def get_input(self):
71
+ return get_input(year=self.year, day=self.day).splitlines()
72
+
73
+ def get_input_no_splitlines(self):
74
+ return get_input(year=self.year, day=self.day)
75
+
76
+ def assert_p1(self, inp: str, expected: Any):
77
+ if self.part_1 is None and self.part_1_no_splitlines is None:
78
+ msg = "Set part_1 when initializing AoC()"
79
+ raise Exception(msg)
80
+
81
+ res = None
82
+ with print_perf("assert_p1"):
83
+ if self.part_1 is not None:
84
+ res = self.part_1(inp.splitlines())
85
+ elif self.part_1_no_splitlines is not None:
86
+ res = self.part_1_no_splitlines(inp)
87
+
88
+ assert res is not None, "Result of part_1 should not be None"
89
+ assert res == expected, f"{res} != {expected}"
90
+
91
+ def assert_p2(self, inp: str, expected: Any):
92
+ if self.part_2 is None and self.part_2_no_splitlines is None:
93
+ msg = "Set part_2 when initializing AoC()"
94
+ raise Exception(msg)
95
+
96
+ res = None
97
+ with print_perf("assert_p2"):
98
+ if self.part_2 is not None:
99
+ res = self.part_2(inp.splitlines())
100
+ elif self.part_2_no_splitlines is not None:
101
+ res = self.part_2_no_splitlines(inp)
102
+
103
+ assert res is not None, "Result of part_2 should not be None"
104
+ assert res == expected, f"{res} != {expected}"
105
+
106
+ def submit_p1(self, answer: Any | None = None):
107
+ if answer is not None:
108
+ ...
109
+ elif self.part_1 is not None:
110
+ inp = self.get_input()
111
+ with print_perf("submit_p1"):
112
+ answer = self.part_1(inp)
113
+ elif self.part_1_no_splitlines is not None:
114
+ inp = self.get_input_no_splitlines()
115
+ with print_perf("submit_p1"):
116
+ answer = self.part_1_no_splitlines(inp)
117
+
118
+ submit(year=self.year, day=self.day, level=1, answer=answer)
119
+
120
+ def submit_p2(self, answer: Any | None = None):
121
+ if answer is not None:
122
+ ...
123
+ elif self.part_2 is not None:
124
+ inp = self.get_input()
125
+ with print_perf("submit_p2"):
126
+ answer = self.part_2(inp)
127
+ elif self.part_2_no_splitlines is not None:
128
+ inp = self.get_input_no_splitlines()
129
+ with print_perf("submit_p2"):
130
+ answer = self.part_2_no_splitlines(inp)
131
+
132
+ submit(year=self.year, day=self.day, level=2, answer=answer)
133
+
134
+
135
+ @cache
136
+ def get_puzzle(day: int, year: int, part: int) -> str:
137
+ console.log("Fetching puzzle text from server")
138
+ result = requests.get(
139
+ f"{AOC_URL}/{year}/day/{day}",
140
+ cookies={"session": AOC_SESSION} if AOC_SESSION else None,
141
+ timeout=10,
142
+ )
143
+ assert result.status_code == 200, result.text
144
+
145
+ soup = BeautifulSoup(result.text, features="html.parser")
146
+
147
+ index = part - 1
148
+ if len(soup.body.main.findAll("article")) < index:
149
+ return f"Part {part} Not yet available"
150
+
151
+ return soup.body.main.findAll("article")[part - 1].get_text()
152
+
153
+
154
+ @cache
155
+ def get_input(year: int, day: int) -> str:
156
+ assert AOC_SESSION, AOC_NOT_SET_MSG
157
+ console.log("Fetching from server")
158
+ result = requests.get(
159
+ f"{AOC_URL}/{year}/day/{day}/input",
160
+ cookies={"session": AOC_SESSION},
161
+ timeout=10,
162
+ )
163
+ assert result.status_code == 200, (f"{AOC_URL}/{year}/day/{day}/input", result.text)
164
+
165
+ return result.text
166
+
167
+
168
+ @cache
169
+ def submit(year: int, day: int, level: int, answer: Any):
170
+ assert AOC_SESSION, AOC_NOT_SET_MSG
171
+ console.log(f"Posting [bold]{answer}[/bold] for {day=} {level=}")
172
+ if not answer:
173
+ console.log("Skipping submission", answer)
174
+ return
175
+ result = requests.post(
176
+ f"{AOC_URL}/{year}/day/{day}/answer",
177
+ {"level": level, "answer": answer},
178
+ cookies={"session": AOC_SESSION},
179
+ timeout=10,
180
+ )
181
+ assert result.status_code == 200, result.text
182
+ soup = BeautifulSoup(result.text, features="html.parser")
183
+ console.log(soup.body.main.article.get_text())
File without changes
@@ -0,0 +1,4 @@
1
+ def test_version():
2
+ from src.adventofcode.__about__ import __version__
3
+
4
+ assert __version__