From 6737bab874d2c704fb827e898141debb84094788 Mon Sep 17 00:00:00 2001 From: ljnsn Date: Wed, 16 Oct 2024 23:32:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20script:=20add=20scripts=20as=20p?= =?UTF-8?q?dm=20scripts=20replacements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/lint.sh | 6 ++++++ scripts/publish.sh | 6 ++++++ scripts/test.sh | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 scripts/lint.sh create mode 100755 scripts/publish.sh create mode 100755 scripts/test.sh diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000..a143a49 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e +set -x + +pre-commit run --all-files --color always diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 0000000..e52a33f --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +uv build +uv publish diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..439253f --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -e +set -x + +if [ "$1" == "--network" ]; then + coverage run -m pytest -m 'network' +else + coverage run -m pytest -m 'not network' +fi + +coverage report +coverage xml