Files
kittycad.py/generate/run.sh
Jess Frazelle c209414459 more fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2023-05-08 12:59:11 -07:00

26 lines
589 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
# Fix for ci.
git config --global --add safe.directory /home/user/src
# Cleanup old stuff.
rm -rf kittycad/models
rm -rf kittycad/api
git checkout kittycad/api/file/*_with_base64_helper.py &>/dev/null
# Generate new.
poetry run python generate/generate.py
# Format and lint.
poetry run isort .
poetry run black . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py
poetry run ruff check --fix .
# We ignore errors here but we should eventually fix them.
poetry run mypy .
# Run the tests.
poetry run pytest kittycad