-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 830 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
sinclude .env
all: help
install-linters: ## install the linters
pip install black==23.10.0 ruff==0.6.9 mypy==1.9.0 types-psutil
install: install-linters
mypy:
python3 -m mypy --check-untyped-defs --follow-imports=silent --exclude third_party/ train.py
lint:
python3 -m ruff format --check --exclude fastgen/third_party/
python3 -m ruff check --exclude fastgen/third_party/
format:
python3 -m ruff format --exclude fastgen/third_party/
python3 -m ruff check --fix --exclude fastgen/third_party/
install-fastgen:
python3 -m pip install -e .
pytest:
ulimit -n 4096 && python3 -m pytest --ignore=FASTGEN_OUTPUT --ignore=runs --ignore=tmp --ignore third_party
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'