Add CI quality tooling: coverage, type checking, formatting, security#25
Merged
Add CI quality tooling: coverage, type checking, formatting, security#25
Conversation
CI pipeline now runs 5 jobs: - lint: ruff check + ruff format --check (expanded rules: bugbear, naming, security, simplify, pyupgrade) - typecheck: mypy with strict untyped defs - security: bandit scan + pip-audit dependency check - test: pytest with coverage (86%, threshold 70%), across 3.10-3.13 - build: only after all quality gates pass New dev dependencies: pytest-cov, mypy, bandit, pip-audit pyproject.toml: - Expanded ruff rules: N, UP, B, A, S, T20, SIM, RUF - Added ruff format config - Added mypy config - Added coverage config with branch tracking - Added bandit config All existing code reformatted by ruff format. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve merge conflicts in __init__.py and examples/basic_usage.py. Sort __all__ alphabetically (RUF022), remove unused noqa directive, suppress S105 false positive on "TOKEN" query variable names. Reformat merged files with ruff format. Co-Authored-By: Claude Opus 4.6 (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
Add comprehensive quality gates to the CI pipeline:
New dev dependencies
pytest-cov-- coverage reportingmypy-- static type checkingbandit-- security linterpip-audit-- dependency vulnerability scannerConfig added to pyproject.toml
[tool.ruff.lint]-- expanded rule set with per-file ignores[tool.ruff.format]-- double quotes, space indent[tool.mypy]-- strict untyped defs, ignore missing imports[tool.coverage]-- branch tracking, 70% minimum, show missing[tool.bandit]-- exclude tests, skip B311 (non-crypto random)Code changes
ruff format__all__in__init__.pyTest plan
ruff checkpasses with expanded rulesruff format --checkpassesmypy src/passesbandit -r src/passes (0 issues)pytest --covreports 86% coverage🤖 Generated with Claude Code