ci: add maintainer automation and fix lint violations#41
Merged
Conversation
added 2 commits
July 4, 2026 21:21
Unblocks a lint gate in CI without touching test_imports.py's intentional unused imports (per-file ignore instead).
Adds PR title linting, auto-labeling by changed path, stale issue/PR sweeps, CodeQL scanning, first-interaction greetings, Dependabot, CODEOWNERS, and SECURITY.md — the automation a repo needs before it can handle high contributor volume without a maintainer manually triaging every PR and issue. Also routes CODE_OF_CONDUCT reports to private email instead of a public issue, and documents the new gates in CONTRIBUTING.md.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
This PR introduces repository maintainer automation (labeling, stale sweeps, PR title linting, CodeQL, greetings, Dependabot, CODEOWNERS, issue templates) and adds Ruff lint configuration + a CI lint gate, alongside code/doc cleanups to satisfy linting.
Changes:
- Add Ruff configuration and a CI lint job; clean up existing lint violations across Python modules and tests.
- Add GitHub automation workflows (stale management, PR title Conventional Commits linting, auto-labeling, greetings, CodeQL, Dependabot).
- Update contributor and community/security documentation (CONTRIBUTING, README links, SECURITY policy, Code of Conduct reporting guidance, PR template).
Reviewed changes
Copilot reviewed 27 out of 28 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_pipeline.py | Removes unused imports after lint enforcement. |
| SECURITY.md | Adds a security policy and private vulnerability reporting guidance. |
| README.md | Adds links for discussions and security reporting. |
| quick_demo.py | Removes unused metric import after lint enforcement. |
| pyproject.toml | Adds Ruff dev dependency and Ruff configuration/per-file ignore. |
| memorylens/simulator/facts.py | Removes unused dataclasses import. |
| memorylens/simulator/conversation.py | Removes unused BENCHMARK_FACTS import. |
| memorylens/memory/rag_chunked.py | Removes unused typing import. |
| memorylens/memory/cascading.py | Removes unused imports after lint enforcement. |
| memorylens/evaluation/metrics.py | Removes unused typing import. |
| memorylens/evaluation/llm_judge.py | Removes unused typing import and splits combined imports for linting. |
| memorylens/cli.py | Removes unused import and resolves ambiguous variable naming flagged by lint. |
| memorylens/api.py | Removes unused typing import. |
| dashboard.py | Removes unused typing import and resolves ambiguous variable naming flagged by lint. |
| CONTRIBUTING.md | Documents Ruff as a required local/CI gate and describes new automation. |
| CODE_OF_CONDUCT.md | Routes conduct reports to private email instead of public issues. |
| .gitignore | Ignores pytest and Ruff caches. |
| .github/workflows/stale.yml | Adds scheduled stale issue/PR management. |
| .github/workflows/pr-title.yml | Adds Conventional Commits-style PR title linting. |
| .github/workflows/labeler.yml | Adds PR auto-labeling workflow. |
| .github/workflows/greetings.yml | Adds first-interaction greetings for issues/PRs. |
| .github/workflows/codeql.yml | Adds CodeQL scanning workflow for Python. |
| .github/workflows/ci.yml | Adds lint job and CI concurrency/permissions configuration. |
| .github/pull_request_template.md | Updates checklist to reflect current repo structure and lint gate; removes generator footer. |
| .github/labeler.yml | Defines path-based label mapping. |
| .github/ISSUE_TEMPLATE/config.yml | Disables blank issues and adds contact links for discussions/security. |
| .github/dependabot.yml | Adds Dependabot config for pip + GitHub Actions updates. |
| .github/CODEOWNERS | Adds CODEOWNERS coverage for key areas. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+20
to
+24
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - run: pipx run ruff check . |
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
Test plan
pytest tests/ -v— 45 passedruff check .— cleanyaml.safe_load