chore: apply ty checks on api code with script and ci action (#24653)
This commit is contained in:
parent
c373b734bc
commit
7b379e2a61
48 changed files with 188 additions and 142 deletions
|
|
@ -14,5 +14,8 @@ uv run --directory api --dev ruff format ./
|
|||
# run dotenv-linter linter
|
||||
uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example
|
||||
|
||||
# run ty check
|
||||
dev/ty-check
|
||||
|
||||
# run mypy check
|
||||
dev/mypy-check
|
||||
|
|
|
|||
10
dev/ty-check
Executable file
10
dev/ty-check
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
||||
cd "$SCRIPT_DIR/.."
|
||||
|
||||
# run ty checks
|
||||
uv run --directory api --dev \
|
||||
ty check
|
||||
Loading…
Add table
Add a link
Reference in a new issue