openai/chatkit-python

Public

mirrored fromhttps://github.com/openai/chatkit-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.6.5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Makefile

40lines · modecode

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