Skip to content

Enforce black formatting and mypy checks in Copilot agentic sessions - #476

Merged
thomaspatzke merged 1 commit into
mainfrom
copilot/agentic-ai-code-formatting
Jun 1, 2026
Merged

Enforce black formatting and mypy checks in Copilot agentic sessions#476
thomaspatzke merged 1 commit into
mainfrom
copilot/agentic-ai-code-formatting

Conversation

Copilot AI commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Copilot agentic sessions were skipping black formatting and mypy type-checking, leaving PRs with style and type violations.

Changes

.github/workflows/copilot-setup-steps.yml (new)

  • Pre-installs Poetry and runs poetry install (all dev deps including black and mypy) before the agent starts, eliminating unreliable on-demand tool discovery.

.github/copilot-instructions.md

  • Added poetry run mypy to the Linting and Formatting command reference.
  • Added a Validation Before Finishing section that explicitly requires the agent to run black --check, mypy, and pytest — and treats any failures as blockers before a task is considered done.

Copilot AI changed the title Add Copilot setup steps and enforce black/mypy validation Enforce black formatting and mypy checks in Copilot agentic sessions Jun 1, 2026
Copilot AI requested a review from thomaspatzke June 1, 2026 20:59
@thomaspatzke
thomaspatzke marked this pull request as ready for review June 1, 2026 21:03
@thomaspatzke
thomaspatzke merged commit a4f5b42 into main Jun 1, 2026
22 checks passed
@thomaspatzke
thomaspatzke deleted the copilot/agentic-ai-code-formatting branch June 1, 2026 21:08
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.

2 participants