forked from jakerains/chatgpt-library-archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 955 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (31 loc) · 955 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
35
36
37
38
39
40
41
42
43
.PHONY: install lint test build deps deps-pip deps-pip-tools deps-uv clean fmt check
SYNC_REQUIREMENTS = requirements.txt requirements-dev.txt
install: deps
python -m pre_commit install --install-hooks
deps: deps-pip
deps-pip:
python -m pip install -e .[dev]
deps-pip-tools:
pip-sync $(SYNC_REQUIREMENTS)
python -m pip install -e . --no-deps
deps-uv:
uv pip sync $(SYNC_REQUIREMENTS)
uv pip install -e . --no-deps
lint:
python -m ruff check .
python -m ruff format --check .
python -m pyright
test:
python -m pytest --cov=chatgpt_library_archiver --cov-report=term-missing --cov-fail-under=85
build:
python -m build
clean:
rm -rf build/ dist/ *.egg-info src/*.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .pytest_cache -exec rm -rf {} +
find . -type d -name .ruff_cache -exec rm -rf {} +
rm -rf .coverage htmlcov/
fmt:
python -m ruff check --fix .
python -m ruff format .
check: lint test