chore: add script for running mypy type checks and speed up mypy checks in CI jobs (#17489)
This commit is contained in:
parent
eb0e51d44d
commit
0b1259fc4a
5 changed files with 391 additions and 120 deletions
|
|
@ -16,3 +16,6 @@ poetry run -C api ruff format ./
|
|||
|
||||
# run dotenv-linter linter
|
||||
poetry run -P api dotenv-linter ./api/.env.example ./web/.env.example
|
||||
|
||||
# run mypy check
|
||||
dev/run-mypy
|
||||
|
|
|
|||
11
dev/run-mypy
Executable file
11
dev/run-mypy
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
if ! command -v mypy &> /dev/null; then
|
||||
poetry install -C api --with dev
|
||||
fi
|
||||
|
||||
# run mypy checks
|
||||
poetry run -C api \
|
||||
python -m mypy --install-types --non-interactive .
|
||||
Loading…
Add table
Add a link
Reference in a new issue