mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-21 15:10:23 +00:00
34 lines
628 B
Makefile
34 lines
628 B
Makefile
# Run tests and linters
|
|
@default: test lint
|
|
|
|
# Install dependencies and test dependencies
|
|
@init:
|
|
pipenv run pip install -e '.[test]'
|
|
|
|
# Run pytest with supplied options
|
|
@test *options:
|
|
pipenv run pytest {{options}}
|
|
|
|
# Run linters
|
|
@lint:
|
|
pipenv run black . --check
|
|
pipenv run cog --check README.md docs/*.md
|
|
pipenv run mypy llm
|
|
pipenv run ruff .
|
|
|
|
# Rebuild docs with cog
|
|
@cog:
|
|
pipenv run cog -r docs/*.md
|
|
|
|
# Serve live docs on localhost:8000
|
|
@docs: cog
|
|
cd docs && pipenv run make livehtml
|
|
|
|
# Apply Black
|
|
@black:
|
|
pipenv run black .
|
|
|
|
# Run automatic fixes
|
|
@fix: cog
|
|
pipenv run ruff . --fix
|
|
pipenv run black .
|