Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaia
commited on
Commit
•
50c352c
1
Parent(s):
be37fd7
updated makefile
Browse files
Makefile
CHANGED
@@ -1,12 +1,18 @@
|
|
1 |
-
.PHONY: style format quality
|
2 |
|
3 |
-
# Applies code style fixes to the specified file
|
4 |
style:
|
5 |
-
|
6 |
-
|
7 |
-
ruff check --fix $(file)
|
8 |
|
|
|
9 |
quality:
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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
|