Spaces:
Sleeping
Sleeping
File size: 697 Bytes
4dc9a10 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
.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=.
|