feat: modernize Python toolchain and establish testing infrastructure#3
Merged
Conversation
- Add pyproject.toml with project metadata and dependencies - Configure Ruff (linter/formatter) and mypy (type checker) - Add pre-commit hooks for code quality - Set up GitHub Actions CI with lint and test jobs - Create pytest test suite with 3 test modules (detect_changes, check_quality, generate_toc) - Add shared test fixtures in conftest.py This establishes the foundation for improving code quality and maintainability. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
This PR establishes a modern Python development infrastructure for Mini-Wiki, bringing the project up to 2026 standards:
pyproject.tomlwith project metadata, runtime dependencies (PyYAML, tomli), and dev dependencies (pytest, ruff, mypy)Changes
New Files
pyproject.toml- Project configuration with dependencies and tool settings.pre-commit-config.yaml- Pre-commit hooks for Ruff and mypy.github/workflows/ci.yml- CI/CD pipeline with lint and test jobstests/- Test suite with conftest.py and 3 test modules (555 lines)Statistics
Benefits
Test Plan
pytest -vto verify tests pass (requires local setup)ruff check scripts/to identify code issuesmypy scripts/for type checkingNext Steps
After merging, the following improvements are recommended:
Short-term (1-2 weeks):
Medium-term (1-3 months):
Breaking Changes
None - this PR only adds new infrastructure without modifying existing functionality.
🤖 Generated with Claude Code