mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-14 16:53:10 +00:00
Configure just for this project
This commit is contained in:
parent
9f1085eece
commit
cfa967abf7
1 changed files with 23 additions and 0 deletions
23
Justfile
Normal file
23
Justfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Run tests and linters
|
||||
@default: test lint
|
||||
|
||||
# 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
|
||||
|
||||
# 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 .
|
||||
Loading…
Reference in a new issue