-
Notifications
You must be signed in to change notification settings - Fork 723
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1 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
# Makefile to simplify some common development tasks.
# Run 'make help' for a list of commands.
PYTHON=`which python`
default: help
help:
@echo "Available commands:"
@sed -n '/^[a-zA-Z0-9_.]*:/s/:.*//p' <Makefile | sort
test:
uv run --group dev --python 3.10 pytest tests/
uv run --group dev --python 3.11 pytest tests/
uv run --group dev --python 3.12 pytest tests/
uv run --group dev --python 3.13 pytest tests/
uv run --group dev --python 3.14 pytest tests/
lint:
uv run --group dev ruff check sqlparse/
coverage:
uv run --group dev coverage run -m pytest tests/
uv run --group dev coverage combine
uv run --group dev coverage report
coverage-xml:
uv run --group dev coverage run -m pytest tests/
uv run --group dev coverage combine
uv run --group dev coverage xml
clean:
$(PYTHON) setup.py clean
find . -name '*.pyc' -delete
find . -name '*~' -delete
release:
@rm -rf dist/
python -m build
hatch publish
@echo "Reminder: Add release on github https://github.com/andialbrecht/sqlparse/releases"