forked from inngest/inngest-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 810 Bytes
/
Makefile
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
.PHONY: build
build:
@if [ -d "dist" ]; then rm -rf dist; fi
@python -m build
check-venv:
@if [ -z "$${CI}" ] && [ -z "$${VIRTUAL_ENV}" ]; then \
echo "virtual environment is not activated"; \
exit 1; \
fi
format: check-venv
@ruff format --check .
format-check: check-venv
@ruff format .
install: check-venv
@pip install -e '.[extra]' -c constraints.txt
itest: check-venv
@pytest -n 4 -v tests
pre-commit: format-check lint type-check utest
release:
@grep "version = \"$${VERSION}\"" pyproject.toml && git tag $${VERSION} && git push origin $${VERSION} || echo "pyproject.toml version does not match"
lint: check-venv
@ruff check .
type-check: check-venv
@mypy inngest tests
@mypy examples/fast_api
@mypy examples/flask
@mypy examples/tornado
utest: check-venv
@pytest -v inngest