chore: migrate tooling to Ruff, expand CI, add Makefile and IaC workf…#1
Merged
Conversation
…lows - Replace flake8/black/isort with Ruff (linter + formatter) across pre-commit, CI, and requirements - Add mypy, bandit, detect-secrets, pip-audit for type checking and security scanning - Expand CI pipeline with lint, security scan, Terraform validation, coverage gate (80%), and AI PR review - Add iac-plan.yml workflow for Terraform plan on infra PRs - Add Makefile with setup, lint, format, test, security, and infra targets - Update pyproject.toml with full tool config (ruff, mypy, pytest, bandit, coverage) - Add .claude/CLAUDE.md with project standards for AI assistant Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- fix(lint): sort imports, remove unused psycopg/pytest imports, strip trailing whitespace and add EOF newlines across app/main.py, src/example/, and tests/ - fix(security): replace wildcard CORS with ALLOWED_ORIGINS env var (semgrep wildcard-cors rule) - fix(ci): replace non-existent infracost/actions/comment@v3 action with infracost comment github CLI call - fix(deps): regenerate poetry.lock to match updated pyproject.toml dev dependencies Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- fix(tests): add pythonpath = ["src"] to pytest config so example package resolves - fix(ci): gate all iac-plan.yml steps on has_infra check to prevent failure when infra/ dir is absent Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests cover the /healthz endpoint and CORS header behaviour, bringing total coverage from 31% to 100%. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…lows