* better default types Signed-off-by: Jess Frazelle <github@jessfraz.com> * more mypy fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * more fixes for mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy; Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
30 lines
577 B
Bash
Executable File
30 lines
577 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
# Fix for ci.
|
|
git config --global --add safe.directory /home/user/src || true
|
|
|
|
git add kittycad/models/base64data.py || true
|
|
git add kittycad/models/empty.py || true
|
|
|
|
|
|
# Cleanup old stuff.
|
|
rm -rf kittycad/models
|
|
rm -rf kittycad/api
|
|
git checkout kittycad/models/base64data.py || true
|
|
git checkout kittycad/models/empty.py || true
|
|
|
|
# Generate new.
|
|
poetry run python generate/generate.py
|
|
|
|
# Format and lint.
|
|
poetry run isort .
|
|
poetry run ruff check --fix .
|
|
poetry run ruff format
|
|
poetry run mypy .
|
|
|
|
|
|
# Run the tests.
|
|
poetry run pytest kittycad
|