-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (41 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
51 lines (41 loc) · 1.09 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: install
install:
pip install -e .
.PHONY: install-dev
install-dev:
pip install -e .[dev]
pre-commit install
.PHONY: type
type:
SKIP=no-commit-to-branch pre-commit run -a pyright
.PHONY: format
format:
# Fix all autofixable problems (which sorts imports) then format errors
SKIP=no-commit-to-branch pre-commit run -a ruff-lint
SKIP=no-commit-to-branch pre-commit run -a ruff-format
.PHONY: check
check:
SKIP=no-commit-to-branch pre-commit run -a --hook-stage commit
.PHONY: test
test:
python -m pytest
.PHONY: test-all
test-all:
python -m pytest --runslow
.PHONY: sync-up
sync-up:
rsync -avzP \
--filter=':- .gitignore' \
--exclude='.git/' \
. $(LOCATION)
.PHONY: sync-down
sync-down:
rsync -avzP \
--filter=':- .gitignore' \
--exclude='.git/' \
$(LOCATION) .
# Default values
LOCATION ?= user@10.10.10.10:/path/to/destination
.PHONY: setup-vast
setup-vast: # this is so shit but it works for now. Tired of trying to get uv, pyproject.toml, and pip to work together
pip install transformer_lens pydantic wandb fire tqdm einops transformers datasets plotly pandas matplotlib