Skip to content

Commit

Permalink
🔨 script: add scripts as pdm scripts replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Oct 16, 2024
1 parent dc225bd commit 6737bab
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e
set -x

pre-commit run --all-files --color always
6 changes: 6 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e

uv build
uv publish
13 changes: 13 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6737bab

Please sign in to comment.