Terry Zhuo commited on
Commit
c0be475
1 Parent(s): 6d9e1e4
Files changed (1) hide show
  1. Makefile +14 -9
Makefile CHANGED
@@ -1,13 +1,18 @@
1
- .PHONY: style format
2
-
3
 
 
4
  style:
5
- python -m black --line-length 119 .
6
- python -m isort .
7
- ruff check --fix .
8
-
9
 
 
10
  quality:
11
- python -m black --check --line-length 119 .
12
- python -m isort --check-only .
13
- ruff check .
 
 
 
 
 
 
1
+ .PHONY: style format quality all
 
2
 
3
+ # Applies code style fixes to the specified file or directory
4
  style:
5
+ @echo "Applying style fixes to $(file)"
6
+ ruff format $(file)
7
+ ruff check --fix $(file) --line-length 119
 
8
 
9
+ # Checks code quality for the specified file or directory
10
  quality:
11
+ @echo "Checking code quality for $(file)"
12
+ ruff check $(file) --line-length 119
13
+
14
+ # Applies PEP8 formatting and checks the entire codebase
15
+ all:
16
+ @echo "Formatting and checking the entire codebase"
17
+ ruff format .
18
+ ruff check --fix . --line-length 119