Skip to content

ci: add maintainer automation and fix lint violations#41

Merged
Neal006 merged 2 commits into
mainfrom
chore/repo-automation-and-lint
Jul 4, 2026
Merged

ci: add maintainer automation and fix lint violations#41
Neal006 merged 2 commits into
mainfrom
chore/repo-automation-and-lint

Conversation

@Neal006

@Neal006 Neal006 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a ruff lint gate to CI and fixes all existing lint violations (44 auto-fixed, 2 ambiguous-variable renames)
  • Adds maintainer automation: PR title linting (Conventional Commits), path-based auto-labeling, stale issue/PR sweeps, CodeQL scanning, first-interaction greetings, Dependabot, CODEOWNERS, SECURITY.md
  • Routes Code of Conduct reports to private email instead of a public issue; documents new gates in CONTRIBUTING.md

Test plan

  • pytest tests/ -v — 45 passed
  • ruff check . — clean
  • All new/modified YAML validated with yaml.safe_load

Neal006 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.
Copilot AI review requested due to automatic review settings July 4, 2026 15:53
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread .github/workflows/ci.yml
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 .
@Neal006 Neal006 merged commit 45698d8 into main Jul 4, 2026
12 checks passed
@Neal006 Neal006 deleted the chore/repo-automation-and-lint branch July 4, 2026 16:19
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.

3 participants