-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (40 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
50 lines (40 loc) · 1.05 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
.PHONY: help install install-dev test lint format clean build publish
help:
@echo "Available commands:"
@echo " install Install package"
@echo " install-dev Install development dependencies"
@echo " test Run tests"
@echo " lint Run linting"
@echo " format Format code"
@echo " clean Clean build artifacts"
@echo " build Build package"
@echo " publish Publish to PyPI"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
test:
pytest tests/ -v
test-cov:
pytest tests/ -v --cov=comfyuiclient --cov-report=term-missing
lint:
flake8 comfyuiclient tests
mypy comfyuiclient
black --check comfyuiclient tests
isort --check-only comfyuiclient tests
format:
black comfyuiclient tests
isort comfyuiclient tests
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: clean
python -m build
publish: build
python -m twine upload dist/*