-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 1.18 KB
/
Makefile
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 install-dev format lint type-check test test-cov clean run
help:
@echo "Available commands:"
@echo " install Install production dependencies"
@echo " install-dev Install development dependencies"
@echo " format Format code with black"
@echo " lint Run ruff linter"
@echo " type-check Run mypy type checker"
@echo " test Run tests"
@echo " test-cov Run tests with coverage"
@echo " clean Clean cache and build files"
@echo " run Run the scraper"
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
format:
black polla_app tests
lint:
ruff check polla_app tests
type-check:
mypy polla_app
test:
pytest -q
test-cov:
pytest --cov=polla_app --cov-report=term-missing --cov-report=html
clean:
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage
rm -rf debug logs storage_state.json
run:
@if [ -z "$(URL)" ]; then \
echo "Usage: make run URL=https://example"; \
exit 1; \
fi
python -m polla_app ingest "$(URL)"