Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan committed Sep 30, 2023
1 parent 5c5dc89 commit 11214d1
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/check
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/bash -ex

black --check --diff tests anysqlite
ruff tests anysqlite
mypy tests anysqlite
9 changes: 9 additions & 0 deletions scripts/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/bash -x

rm -rf venv
python -m venv venv

source venv/bin/activate

pip install --upgrade pip
pip install -r requirements.txt
4 changes: 4 additions & 0 deletions scripts/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash -ex

black anysqlite tests
ruff --fix anysqlite tests
3 changes: 3 additions & 0 deletions scripts/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash -ex

hatch publish -u __token__ -a $ANYSQLITE_PYPI
3 changes: 3 additions & 0 deletions scripts/publish-docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash -ex

mkdocs gh-deploy --force
5 changes: 5 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/bash -e
set -x

./scripts/check
pytest tests

0 comments on commit 11214d1

Please sign in to comment.