Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaia
commited on
Commit
·
be37fd7
1
Parent(s):
10a491c
updated makefile
Browse files
Makefile
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 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
|
|
|
|
| 2 |
|
| 3 |
+
# Applies code style fixes to the specified file
|
| 4 |
style:
|
| 5 |
+
python -m black --line-length 119 $(file)
|
| 6 |
+
python -m isort $(file)
|
| 7 |
+
ruff check --fix $(file)
|
|
|
|
| 8 |
|
| 9 |
quality:
|
| 10 |
+
python -m black --check --line-length 119 $(file)
|
| 11 |
+
python -m isort --check-only $(file)
|
| 12 |
+
ruff check $(file)
|