forked from sumukshashidhar/yourbench
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 697 Bytes
/
Makefile
File metadata and controls
23 lines (19 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: style format quality check all
# Applies code style fixes to the specified file or directory
style:
@echo "Applying style fixes to $(file)"
ruff format $(file)
ruff check --fix $(file)
# Checks code quality for the specified file or directory without applying fixes
check:
@echo "Checking code quality for $(file) without fixes"
ruff format --diff $(file)
ruff check $(file)
# Applies PEP8 formatting and checks the entire codebase
all: style
@echo "Formatting and checking the entire codebase"
$(MAKE) style file=.
# Checks the entire codebase without applying fixes (for CI)
quality: check
@echo "Checking quality of the entire codebase without fixes"
$(MAKE) check file=.