openai/chatkit-python
Publicmirrored fromhttps://github.com/openai/chatkit-pythonAvailable
Makefile
40lines · modecode
| 1 | .PHONY: sync install format format-check lint mypy pyright test build serve-docs deploy-docs check |
| 2 | |
| 3 | UV_ENV := env -i PATH="$(PATH)" HOME="$(HOME)" |
| 4 | UV := $(UV_ENV) uv --no-config |
| 5 | UV_LOCK_ARGS := --locked --default-index https://pypi.org/simple |
| 6 | |
| 7 | sync: |
| 8 | $(UV) sync $(UV_LOCK_ARGS) --all-extras --all-packages --group dev |
| 9 | |
| 10 | install: sync |
| 11 | |
| 12 | format: |
| 13 | $(UV) run $(UV_LOCK_ARGS) ruff format |
| 14 | $(UV) run $(UV_LOCK_ARGS) ruff check --fix |
| 15 | |
| 16 | format-check: |
| 17 | $(UV) run $(UV_LOCK_ARGS) ruff format --check |
| 18 | |
| 19 | lint: |
| 20 | $(UV) run $(UV_LOCK_ARGS) ruff check |
| 21 | |
| 22 | mypy: |
| 23 | $(UV) run $(UV_LOCK_ARGS) mypy . |
| 24 | |
| 25 | pyright: |
| 26 | $(UV) run $(UV_LOCK_ARGS) pyright |
| 27 | |
| 28 | test: |
| 29 | $(UV_ENV) PYTHONPATH=. uv --no-config run $(UV_LOCK_ARGS) pytest |
| 30 | |
| 31 | build: |
| 32 | $(UV) build --default-index https://pypi.org/simple |
| 33 | |
| 34 | serve-docs: |
| 35 | $(UV) run $(UV_LOCK_ARGS) mkdocs serve |
| 36 | |
| 37 | deploy-docs: |
| 38 | $(UV) run $(UV_LOCK_ARGS) mkdocs gh-deploy --force --verbose |
| 39 | |
| 40 | check: format-check lint pyright test |
| 41 | |