Terry Zhuo
commited on
Commit
•
c0be475
1
Parent(s):
6d9e1e4
update
Browse files
Makefile
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
-
.PHONY: style format
|
2 |
-
|
3 |
|
|
|
4 |
style:
|
5 |
-
|
6 |
-
|
7 |
-
ruff check --fix
|
8 |
-
|
9 |
|
|
|
10 |
quality:
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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
|