-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.13 KB
/
Makefile
File metadata and controls
45 lines (36 loc) · 1.13 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
.PHONY: install dev test lint format clean help run
# Default target
help:
@echo "Available commands:"
@echo " install - Install production dependencies"
@echo " dev - Install development dependencies"
@echo " test - Run tests"
@echo " lint - Run linting checks"
@echo " format - Format code"
@echo " clean - Clean up generated files"
@echo " run - Run the bot"
install:
poetry install --no-dev
dev:
poetry install
poetry run pre-commit install --install-hooks || echo "pre-commit not configured yet"
test:
poetry run pytest
lint:
poetry run black --check src tests
poetry run isort --check-only src tests
poetry run flake8 src tests
poetry run mypy src
format:
poetry run black src tests
poetry run isort src tests
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
rm -rf .coverage htmlcov/ .pytest_cache/ dist/ build/
run:
poetry run claude-telegram-bot
# For debugging
run-debug:
poetry run claude-telegram-bot --debug