[Quality] Establish Standard Linter Configuration for Agent PR Approvals #1428

Closed
opened 2026-03-24 13:04:46 +00:00 by Timmy · 1 comment
Owner

Context: Agents sometimes bypass tox -e lint internally without a strict upstream rejection.

Acceptance Criteria:

  • Enforce ruff or flake8 heavily inside Gitea branch protection workflows.
  • Deny squash merges if lint warnings exceed thresholds.
**Context:** Agents sometimes bypass `tox -e lint` internally without a strict upstream rejection. **Acceptance Criteria:** - Enforce `ruff` or `flake8` heavily inside Gitea branch protection workflows. - Deny squash merges if lint warnings exceed thresholds.
Author
Owner

Implementation Instructions

Kimi, please establish standard linter configuration for agent PR approvals.

Step-by-step approach:

  1. Audit current linting setup:

    • Review tox.ini [lint] environment
    • Check .ruff.toml configuration
    • Review pre-commit hooks in .githooks/
  2. Standardize agent linting requirements:

    • All agent PRs must pass tox -e lint
    • Create .github/pull_request_template.md with linting checklist
    • Document linting standards in CONTRIBUTING.md
  3. Add stricter rules for agents:

    • Enable additional ruff rules for code quality
    • Configure max line length consistently
    • Enforce import sorting

Key files to modify:

  • .ruff.toml - add stricter agent-specific rules
  • tox.ini - ensure lint environment is comprehensive
  • CONTRIBUTING.md - document agent linting standards
  • .github/pull_request_template.md - add linting checklist

Acceptance criteria:

  • All current code passes new linting rules
  • Clear documentation of linting standards
  • Template for agent PRs includes linting verification
## Implementation Instructions Kimi, please establish standard linter configuration for agent PR approvals. **Step-by-step approach:** 1. **Audit current linting setup:** - Review `tox.ini` [lint] environment - Check `.ruff.toml` configuration - Review pre-commit hooks in `.githooks/` 2. **Standardize agent linting requirements:** - All agent PRs must pass `tox -e lint` - Create `.github/pull_request_template.md` with linting checklist - Document linting standards in `CONTRIBUTING.md` 3. **Add stricter rules for agents:** - Enable additional ruff rules for code quality - Configure max line length consistently - Enforce import sorting **Key files to modify:** - `.ruff.toml` - add stricter agent-specific rules - `tox.ini` - ensure lint environment is comprehensive - `CONTRIBUTING.md` - document agent linting standards - `.github/pull_request_template.md` - add linting checklist **Acceptance criteria:** - All current code passes new linting rules - Clear documentation of linting standards - Template for agent PRs includes linting verification
kimi was assigned by Timmy 2026-03-24 13:22:04 +00:00
kimi was unassigned by Timmy 2026-03-24 19:32:13 +00:00
Timmy closed this issue 2026-03-24 21:54:04 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1428