diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b0159e7..9dc5a7f 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -64,13 +64,19 @@ jobs: uv run quickbot init --output test_cli_output --project-name "CI Test" --description "Test Description" --author "CI" --license-name MIT --no-include-alembic --no-include-i18n --no-interactive ls -la test_cli_output/ cat test_cli_output/pyproject.toml + + - name: Clean up test files + run: | + rm -rf test_cli_output/ + - name: Ruff (lint + format check) run: | uv run ruff check src/ tests/ uv run ruff format --check src/ tests/ + - name: MyPy run: | - uv run mypy . + uv run mypy src/ tests/ - name: Pytest run: | uv run pytest tests/ --cov=src/quickbot_cli --cov-report=term-missing --cov-report=html -v diff --git a/pyproject.toml b/pyproject.toml index 12b8a82..9a4957b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,12 @@ python_version = "3.13" strict = true ignore_missing_imports = true warn_unused_ignores = true +exclude = [ + "test_cli_output/", + "dist/", + ".venv/", + ".mypy_cache/" +] [tool.hatch.version] source = "vcs" diff --git a/scripts/test_ci_locally.sh b/scripts/test_ci_locally.sh index 953a9b7..03d7327 100755 --- a/scripts/test_ci_locally.sh +++ b/scripts/test_ci_locally.sh @@ -37,5 +37,6 @@ cat test_cli_output/pyproject.toml echo "🧹 Cleaning up..." rm -rf test_cli_output +rm -rf dist/* echo "✅ All CI workflow steps passed locally!"