File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1- all : black flake test solutions
1+ .PHONY : all clean black flake test solutions
22
3+ # Default target
4+ all : black flake test solutions clean
5+
6+ # Clean temporary and generated files
7+ clean :
8+ find . \( -type f -name ' *.pyc' -or -type d -name ' __pycache__' \) -delete
9+ find . \( -type d -name ' .eggs' -or -type d -name ' *.egg-info' -or -type d -name ' .pytest_cache' \) | xargs rm -rf
10+
11+ # Format code using black
312black :
413 black ./src ./tests
514
15+ # Run flake8 for linting
616flake :
717 flake8 ./src ./tests
818
19+ # Run tests
920test :
1021 python3 -m pytest
1122
23+ # Run specific solutions for Advent of Code 2023
1224solutions :
1325 python3 src/aoc_2023/days/1.py --input_file inputs/1.txt --part 1
1426 python3 src/aoc_2023/days/1.py --input_file inputs/1.txt --part 2
You can’t perform that action at this time.
0 commit comments