From 77fa908ad535afc301fe84ca257c9857c79d07e5 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Fri, 29 Oct 2021 09:16:43 +0100 Subject: [PATCH] add justfile --- .gitignore | 1 + Justfile | 28 ++++++++++++++++++++++++++++ revolt/py.typed | 0 3 files changed, 29 insertions(+) create mode 100755 Justfile create mode 100755 revolt/py.typed diff --git a/.gitignore b/.gitignore index c261afd..59c4f29 100755 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ dist *.egg-info docs/_build .vscode +.env diff --git a/Justfile b/Justfile new file mode 100755 index 0000000..1171209 --- /dev/null +++ b/Justfile @@ -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 diff --git a/revolt/py.typed b/revolt/py.typed new file mode 100755 index 0000000..e69de29