chore: upgrade CI/CD pipeline with comprehensive testing and code qua…#40
chore: upgrade CI/CD pipeline with comprehensive testing and code qua…#40
Conversation
…lity checks - Replace minimal smoke.yml with full CI workflow (build-and-test, lint, typecheck jobs) - Add multi-version testing (Python 3.11, 3.12, 3.13) - Implement code quality checks: ruff (lint/format) and mypy (type checking) - Add .pre-commit-config.yaml for local development workflow - Update pyproject.toml with tool.ruff and tool.mypy configuration - Add Makefile targets: lint, lint-fix, format, typecheck, pre-commit - Update Makefile dev targets to install ruff and mypy - Add coverage reporting to CI pipeline with Codecov integration - Update README with badges and new command documentation Addresses issue #12: CI/CD improvements
There was a problem hiding this comment.
Pull request overview
This PR comprehensively upgrades the CI/CD pipeline to add automated testing, linting, and type checking, addressing issue #12. The changes introduce ruff for code formatting/linting and mypy for type checking, along with pre-commit hooks for local development. All Python code has been reformatted to follow the new standards (double quotes, 100-character line length, consistent formatting).
Changes:
- Replaced minimal smoke.yml workflow with a full CI pipeline featuring three jobs: build-and-test, lint, and typecheck
- Added ruff and mypy as code quality tools with configuration in pyproject.toml and .pre-commit-config.yaml
- Reformatted all Python files to use double quotes, improved formatting, and removed unused imports (notably seaborn)
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke.yml | Upgraded from single smoke test to 3-job CI pipeline with build-and-test, lint, and typecheck jobs |
| .pre-commit-config.yaml | Added pre-commit hooks for ruff linting/formatting and mypy type checking |
| pyproject.toml | Added tool configurations for ruff, mypy, and pytest |
| Makefile | Added new targets: lint, lint-fix, format, typecheck, pre-commit |
| README.md | Updated badges and added documentation for new quality check commands |
| CHANGELOG.md | Documented CI/CD improvements and new tooling |
| pyiri2016/init.py | Reformatted with double quotes, improved spacing and function call formatting |
| pyiri2016/iri2016prof2D.py | Reformatted imports, strings, and function calls; removed unused seaborn import |
| pyiri2016/api/update.py | Reformatted with consistent quote style and spacing |
| tests/test_api.py | Reformatted and removed unused result variable |
| tests/test.py | Reformatted with double quotes and improved formatting |
| settings/settings.py | Reformatted with double quotes |
| examples/*.py | Reformatted all example files, removed unused seaborn imports |
| scripts/*.py | Reformatted all script files, removed unused seaborn imports, improved function call formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…rror Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
…ed with correct URL Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…eve() Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
Co-authored-by: rilma <14822065+rilma@users.noreply.github.com>
…lity checks
Addresses issue #12: CI/CD improvements