-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 1012 Bytes
/
Makefile
File metadata and controls
38 lines (32 loc) · 1012 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
.PHONY: help setup lint test build clean
# Variables
SRC_DIR = validoopsie/
UV_RUN = uv run
# Default target
help:
@echo "Available targets:"
@echo " help - Show this help message"
@echo " setup - Install dependencies"
@echo " lint - Run linters (flake8, mypy)"
@echo " test - Run tests"
@echo " all - Run lint and test"
setup:
uv venv --python=python3.9
uv sync --upgrade --all-groups
lint:
echo "Running pyrefly on src/ directory"
$(UV_RUN) pyrefly check $(SRC_DIR)
echo "Running ruff check"
$(UV_RUN) ruff check $(SRC_DIR)
echo "Running ruff format"
$(UV_RUN) ruff format $(SRC_DIR)
test:
echo "Running pytest on src/ directory"
$(UV_RUN) pytest validoopsie --doctest-modules
echo "Running pytest on stubs/ directory"
$(UV_RUN) stubtest validoopsie --allowlist stubtest_allowlist.txt
echo "Running pytest on examples/ directory"
$(UV_RUN) python -m doctest validoopsie/validate.pyi
echo "Running pytest on tests/ directory"
$(UV_RUN) pytest
all: lint test