forked from pkadambi/Wav2TextGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 756 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 756 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
.PHONY: format format-check lint lint-check mypy-check
format:
@echo "==> Formatting code with Ruff..."
uv run --only-group dev ruff format .
format-check:
@echo "==> Checking code formatting with Ruff..."
uv run --only-group dev ruff format --check .
lint:
@echo "==> Linting with Ruff..."
uv run --only-group dev ruff check --fix .
lint-check:
@echo "==> Checking linting with Ruff..."
uv run --only-group dev ruff check .
mypy-check:
@echo "==> Running mypy for type checking..."
uv run --only-group dev mypy .
fresh-slate:
@echo "==> Removing virtual environment and lock file..."
@read -p "Are you sure you want to proceed? [y/N] " confirm && [ $${confirm} = "y" ] || [ $${confirm} = "Y" ] && rm -rf uv.lock .venv || echo "Aborted."