Skip to content

chore(format): align python and c++ file formatting#2001

Merged
zhoujh01 merged 10 commits into
mainfrom
chore/format-python-cpp
May 13, 2026
Merged

chore(format): align python and c++ file formatting#2001
zhoujh01 merged 10 commits into
mainfrom
chore/format-python-cpp

Conversation

@myysy
Copy link
Copy Markdown
Collaborator

@myysy myysy commented May 12, 2026

Description

This PR aligns Python and C++ source files with the repository's current formatting standards.
It applies repository-standard formatting across tracked Python and C++ files to reduce style drift, keep diffs consistent, and make future PR checks easier to pass.

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

  • Formatted Python files using the repository's Ruff formatting configuration.
  • Formatted C++ files using the repository root .clang-format configuration.
  • Applied formatting-only updates across tracked source and test files without introducing intended functional changes.

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows
      Additional verification performed:
  • ruff format --check bot build_support openviking tests passed after formatting.
  • ruff check bot build_support openviking tests still reports pre-existing lint issues outside the scope of this formatting-only PR.

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

N/A

Additional Notes

This PR is intended to be formatting-only.
Scope notes:

  • Python formatting follows the PR lint workflow and pyproject.toml Ruff settings.
  • C++ formatting follows the repository root .clang-format.
  • third_party/ content was not reformatted.
  • Existing ruff check lint findings remain and are not addressed in this PR.

@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
🏅 Score: 95
🧪 No relevant tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

myysy added 9 commits May 13, 2026 14:02
1. bump urllib3 dependency from 2.6.3 to 2.7.0
2. remove unused pytest import and RoleScope import from test file
Adjust the line breaks in the list comprehension in the VikingSearchTool class to follow standard Python formatting conventions, and rewrap the lambda assignment in the test case to improve code readability without changing functionality.
- remove stray blank line in ov_server.py
- wrap long logger.info line in memory.py for better readability
This commit removes unused imports, reorders import statements for better consistency,
and simplifies some test file imports. Changes include:
- Remove redundant blank lines and unused imports across multiple test files and core modules
- Reorder imports in openviking hooks module to follow standard layout
- Fix import ordering in memory isolation handler
- Simplify php parser type imports
- Move volcengine mock import to correct position in test file
clean up redundant whitespace to improve code readability
@zhoujh01 zhoujh01 merged commit ddcd3fb into main May 13, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project May 13, 2026
@zhoujh01 zhoujh01 deleted the chore/format-python-cpp branch May 13, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants