-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 851 Bytes
/
Makefile
File metadata and controls
46 lines (36 loc) · 851 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
44
45
46
PYTHON := uv run
SRC := funpaybotengine
TESTS := tests
.PHONY: format lint type test all ci clean install dev
install:
uv sync
@echo Production environment ready!
dev:
uv sync --all-extras
$(PYTHON) pre-commit install
@echo Development environment ready!
format:
$(PYTHON) ruff format $(SRC)
@echo Code formatting complete!
lint:
$(PYTHON) ruff check --fix $(SRC)
@echo Code linting complete!
type:
$(PYTHON) mypy $(SRC)
@echo Type checking complete!
test:
$(PYTHON) pytest $(TESTS)
@echo Tests complete!
all: format lint type test
ci:
$(PYTHON) ruff check $(SRC)
$(PYTHON) ruff format --check $(SRC)
$(PYTHON) mypy $(SRC)
$(PYTHON) pytest $(TESTS)
@echo CI checks complete!
clean:
rm -rf __pycache__ */__pycache__
rm -rf .pytest_cache .mypy_cache .ruff_cache
rm -rf build dist
rm -rf *.egg-info
@echo Clean complete!