Skip to content

Commit 70cbc83

Browse files
committed
Fix ruff and mypy
1 parent 6f0e93f commit 70cbc83

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/aoc/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def import_challenge_module(year, day: int):
6363
f'Could not import "{e.name}"',
6464
fg=typer.colors.RED,
6565
)
66-
if e.name == get_challenge_module_name:
66+
if e.name == get_challenge_module_name(year, day):
6767
echo(
6868
f"You have not solved day {day} yet. Start it using 'new-day' command",
6969
fg=typer.colors.RED,

src/aoc_solutions/2023/day_00/test_solution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from ..base_tests import BaseTestChallenge
1+
from aoc.base_tests import BaseTestChallenge
2+
23
from . import Challenge
34

45

tests/test_cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from unittest import mock
33

44
import pytest
5-
from aoc.main import app
65
from aocd.models import Puzzle
76
from typer.testing import CliRunner
87

8+
from aoc.main import app
9+
910
runner = CliRunner()
1011

1112

@@ -90,7 +91,7 @@ def test_run_for_a_specific_day_with_a_custom_file(self, tmp_path: Path):
9091
str(Path(__file__).parent / "data"),
9192
"0",
9293
"-f",
93-
Path(__file__).parent / "data/custom_input.txt",
94+
str(Path(__file__).parent / "data/custom_input.txt"),
9495
],
9596
)
9697
if result.exception:

0 commit comments

Comments
 (0)