[AgentOps][Code Quality] Improve formatting setup and requirement [1/n]#440
Merged
XinweiHe merged 4 commits intopivot/agentopsfrom Feb 9, 2026
Merged
[AgentOps][Code Quality] Improve formatting setup and requirement [1/n]#440XinweiHe merged 4 commits intopivot/agentopsfrom
XinweiHe merged 4 commits intopivot/agentopsfrom
Conversation
Greptile OverviewGreptile SummaryThis PR consolidates and modernizes the formatting and linting infrastructure for both Python and frontend codebases. Key improvements:
Impact:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant PreCommit as Pre-commit Hook
participant CI as GitHub Actions CI
participant Ruff as Ruff (Python)
participant ESLint as ESLint (Frontend)
participant Prettier as Prettier (Frontend)
Dev->>PreCommit: git commit
PreCommit->>PreCommit: Check file hygiene (EOL, trailing spaces)
PreCommit->>Ruff: Run ruff check --fix
PreCommit->>Ruff: Run ruff format
alt Frontend files changed
PreCommit->>ESLint: Run eslint --fix via lint-staged
PreCommit->>Prettier: Run prettier --write via lint-staged
end
PreCommit-->>Dev: Commit accepted/rejected
Dev->>CI: git push / create PR
CI->>CI: Trigger lint.yml workflow
par Python Job
CI->>Ruff: ruff check
CI->>Ruff: ruff format --check
Ruff-->>CI: Pass/Fail
and Frontend Job
CI->>CI: Setup Node & pnpm
CI->>CI: Install dependencies
CI->>ESLint: pnpm run lint
CI->>Prettier: pnpm run format:check
ESLint-->>CI: Pass/Fail
Prettier-->>CI: Pass/Fail
end
CI-->>Dev: Build status
|
Collaborator
Author
|
Will fix the linting error in a follow-up PR. |
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
Fixes #439
Type of Change
Details
Screenshots / Recordings (if applicable)
Checklist