Alina Lozovskaia commited on
Commit
50c352c
1 Parent(s): be37fd7

updated makefile

Browse files
Files changed (1) hide show
  1. Makefile +14 -8
Makefile CHANGED
@@ -1,12 +1,18 @@
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)
 
 
 
 
 
 
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