Skip to content

chore: migrate tooling to Ruff, expand CI, add Makefile and IaC workf…#1

Merged
ScottCampit merged 5 commits into
mainfrom
develop
Apr 10, 2026
Merged

chore: migrate tooling to Ruff, expand CI, add Makefile and IaC workf…#1
ScottCampit merged 5 commits into
mainfrom
develop

Conversation

@ScottCampit
Copy link
Copy Markdown
Contributor

…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

…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>
@ScottCampit ScottCampit merged commit 8de92bb into main Apr 10, 2026
11 checks passed
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