forked from redai-infra/Relax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
47 lines (37 loc) · 1.18 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
.PHONY: help install test lint format clean docs docs-dev docs-build docs-preview
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make test - Run tests"
@echo " make lint - Run linters"
@echo " make format - Format code"
@echo " make clean - Clean build artifacts"
@echo " make docs-dev - Start documentation dev server"
@echo " make docs-build - Build documentation"
@echo " make docs-preview - Preview built documentation"
install:
pip install -e .
pip install -r requirements.txt
test:
pytest tests/
lint:
flake8 relax/
mypy relax/
format: # develop ## Code format using pre-commit tools
@which pre-commit 2>&1 > /dev/null || python -m pip install pre-commit==3.8.0
@pre-commit run --all-files --show-diff-on-failure
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Documentation commands
docs-dev:
cd docs && npm install && npm run docs:dev
docs-build:
cd docs && npm install && npm run docs:build
docs-preview:
cd docs && npm run docs:preview
docs-install:
cd docs && npm install