Skip to content

Commit

Permalink
Add checks script for use in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 18, 2024
1 parent e08d3dc commit 670551d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

# Check our project: formatting, linting, testing, building, etc.
# Good to call this from .git/hooks/pre-commit

set -e

# work from the root of the repo
cd "$(dirname "$0")"

echo "Checking Python"
ruff check
ruff format --check

echo "checking Web UI"
cd src/web_ui
npm run format_check
npm run lint
npm run check
cd ../..

echo "checking Core: build, test"
cd core
hatch build
hatch test
cd ..

echo "checking Studio: build, test"
cd studio
hatch build
hatch test
cd ..

0 comments on commit 670551d

Please sign in to comment.