forked from vllm-project/speculators
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (17 loc) · 629 Bytes
/
Copy pathMakefile
File metadata and controls
19 lines (17 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MDFILES := $(shell find . -name "*.md" -not -path "./.venv/*" -not -path "./build/*" -not -path "./.pytest_cache/*")
# run checks on all files for the repo
quality:
@echo "Running quality checks"
ruff check
ruff format --check
python -m mdformat --check $(MDFILES)
mypy --check-untyped-defs
# style the code according to accepted standards for the repo
# Note: We run `ruff format` twice. Once to fix long lines before lint check
# and again to fix any formatting issues introduced by ruff check --fix
style:
@echo "Running style fixes"
ruff format
ruff check --fix
ruff format --silent
python -m mdformat $(MDFILES)