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
2
2
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
3
12
black :
4
13
black ./src ./tests
5
14
15
+ # Run flake8 for linting
6
16
flake :
7
17
flake8 ./src ./tests
8
18
19
+ # Run tests
9
20
test :
10
21
python3 -m pytest
11
22
23
+ # Run specific solutions for Advent of Code 2023
12
24
solutions :
13
25
python3 src/aoc_2023/days/1.py --input_file inputs/1.txt --part 1
14
26
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