Skip to content

Clean up codebase and add integration tests#10

Merged
iantimmis merged 4 commits into
mainfrom
feat/integration-tests
Apr 6, 2026
Merged

Clean up codebase and add integration tests#10
iantimmis merged 4 commits into
mainfrom
feat/integration-tests

Conversation

@iantimmis
Copy link
Copy Markdown
Owner

Summary

  • Remove unused jinja2 dependency, dead create_pyproject_toml() function, and its template file
  • Simplify __init__.py by dropping the Python <3.8 fallback, tighten requires-python to >=3.11, and modernize type hints
  • Fix validate_project_name regex to accept single-character names
  • Fix setup_ruff to skip appending [tool.ruff] when it already exists
  • Replace Cursor-specific .mdc rule with cross-tool AGENTS.md
  • Align ruff target-version with .python-version (py313) and update pre-commit ruff hook to v0.11.10
  • Add base_dir parameter to initialize_project() and create three end-to-end integration tests covering full-feature, minimal, and Cursor IDE configurations

Test plan

  • All 31 tests pass (uv run pytest -v)
  • Ruff lint and format checks pass
  • All pre-commit hooks pass
  • Verify uv run pytest -m integration runs only the 3 integration tests
  • Verify uv run pytest -m "not integration" skips them

Remove unused jinja2 dependency, dead create_pyproject_toml function
and its template. Simplify __init__.py by dropping the Python <3.8
fallback. Fix validate_project_name to accept single-char names.
Tighten requires-python to >=3.11 and modernize type hints. Fix
setup_ruff to skip appending [tool.ruff] when it already exists.
Replace Cursor-specific .mdc rule with cross-tool AGENTS.md. Align
ruff target-version with .python-version (py313). Update pre-commit
ruff hook to v0.11.10 and fix pytest hook to use uv run. Fix
misleading test mocks to use valid questionary choices.
Add a base_dir parameter to initialize_project() so tests can
control where generated projects land. Create three integration
tests covering full-feature, minimal, and Cursor IDE configurations.
Register the integration pytest marker in pyproject.toml.
@iantimmis iantimmis force-pushed the feat/integration-tests branch from e2f2078 to 0f44f01 Compare April 6, 2026 15:04
@iantimmis iantimmis marked this pull request as ready for review April 6, 2026 15:05
@iantimmis iantimmis merged commit f58587f into main Apr 6, 2026
3 checks passed
@iantimmis iantimmis deleted the feat/integration-tests branch April 6, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant