-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checks script for use in pre-commit
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |