-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 728 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 728 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
30
31
32
33
34
.PHONY: format lint test check requirements visualize docs update-docs update-deps
FILES := pytorch_optimizer examples tests scripts hubconf.py
BLACK_FLAGS := -S -l 119
format:
ruff check --fix $(FILES)
black $(BLACK_FLAGS) $(FILES)
lint:
black $(BLACK_FLAGS) --check $(FILES)
ruff check $(FILES)
check: lint
pyright pytorch_optimizer examples
test:
pytest -p no:pastebin -p no:nose -p no:doctest --disable-warnings --cov=pytorch_optimizer --cov-report=xml ./tests
requirements:
uv export --no-dev > requirements.txt
uv export --group dev > requirements-dev.txt
visualize:
python -m examples.visualize_optimizers
docs:
mkdocs serve
update-docs:
python scripts/update_docs.py
update-deps:
uv sync --upgrade