-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 726 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: all clean black flake test solutions
# Default target
all: ruff test solutions clean
# Clean temporary and generated files
clean:
find . \( -type f -name '*.pyc' -or -type d -name '__pycache__' \) -delete
find . \( -type d -name '.eggs' -or -type d -name '*.egg-info' -or -type d -name '.pytest_cache' \) | xargs rm -rf
# Format code using black
ruff:
ruff check .
# Run tests
test:
python3 -m pytest
solutions:
python3 scripts/run_all_solutions.py
.PHONY: new-day-skeleton-files-from-template
new-day-skeleton-files-from-template:
@read -p "Enter year: " year; \
read -p "Enter day: " day; \
python3 src/advent_of_code/scripts/generate_new_day_skeleton_files_from_templates.py --day $$day --year $$year