add justfile

This commit is contained in:
Zomatree
2021-10-29 09:16:43 +01:00
parent b94c8cd58e
commit 77fa908ad5
3 changed files with 29 additions and 0 deletions
+1
View File
@@ -5,3 +5,4 @@ dist
*.egg-info
docs/_build
.vscode
.env
Executable
+28
View File
@@ -0,0 +1,28 @@
set dotenv-load := true
activate:
source .venv/bin/activate
venv:
python -m venv .venv
just activate
python -m pip install -r requirements.txt
python -m pip install -r docs_requirements.txt
test:
python test.py
build: venv
python -m build
upload: venv
python -m twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
lint:
pyright . --venv-path .venv
coverage:
pyright --lib --ignoreexternal --verifytypes revolt
docs:
cd docs && make html
View File