Skip to content

Feat add simple paths provider test#1598

Merged
openminddev merged 7 commits intoOpenMind:mainfrom
Wanbogang:feat-add-simple-paths-provider-test
Jan 19, 2026
Merged

Feat add simple paths provider test#1598
openminddev merged 7 commits intoOpenMind:mainfrom
Wanbogang:feat-add-simple-paths-provider-test

Conversation

@Wanbogang
Copy link
Copy Markdown
Contributor

Overview

This PR adds unit tests for the _generate_movement_string method in src/providers/simple_paths_provider.py. Additionally, it resolves a conflict between ruff and isort pre-commit hooks that was causing commit failures or infinite loops.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Other: Configuration fix (pre-commit hooks)

Changes

  • Added tests/providers/test_simple_paths_provider.py with unit tests for _generate_movement_string.
  • Modified pyproject.toml to remove ruff's import sorting rules (I), preventing conflicts with isort.

Impact

The primary impact is an improvement in code quality and reliability through increased test coverage for the SimplePathsProvider. The secondary impact is a fix to the development workflow by resolving the ruff/isort conflict in pre-commit hooks, leading to smoother commits.

Additional Information

The ruff configuration change in pyproject.toml disables its import sorting capabilities (select = ["E", "F", "D"] instead of including "I"). This allows isort to manage import order exclusively, avoiding potential disagreements between the two tools on import organization.

…ring

fix: disable ruff import sorting (I) to avoid conflict with isort
- Ruff and isort have conflicting rules about blank lines between imports
- Disabled ruff's I rule since isort (with black profile) is already configured
@Wanbogang Wanbogang requested a review from a team as a code owner January 18, 2026 00:31
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file python Python code tests Test files config Configuration files labels Jan 18, 2026
openminddev and others added 5 commits January 18, 2026 16:22
Removed redundant comments and streamlined test code in test_simple_paths_provider.py. Updated import path for SimplePathsProvider and improved fixture clarity. The changes make the tests more concise and easier to maintain without altering test logic.
Updated the [dependency-groups] dev section in pyproject.toml to use exact versions for black, isort, pre-commit, pyright, pytest, pytest-asyncio, ruff, and vulture. Synchronized uv.lock to match these versions and removed unnecessary or outdated dependencies. This ensures consistent development environments and reproducible builds.
Adds type: ignore to certain imports and updates pyright to 1.1.408. Refactors function call extraction in LLM plugins to use getattr for better compatibility. Improves error handling in face emotion detection and adds an assertion in a test to ensure image decoding. Fixes angle flipping in RPLidar provider to ensure correct data type.
@openminddev openminddev requested review from a team as code owners January 19, 2026 00:50
@github-actions github-actions Bot added the robotics Robotics code changes label Jan 19, 2026
@openminddev openminddev merged commit 361ebfe into OpenMind:main Jan 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Configuration files dependencies Pull requests that update a dependency file python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants