Skip to content

feat: Migrate to Ruff#20

Draft
cdenihan wants to merge 12 commits intomainfrom
feature/migrate-ruff-formatter
Draft

feat: Migrate to Ruff#20
cdenihan wants to merge 12 commits intomainfrom
feature/migrate-ruff-formatter

Conversation

@cdenihan
Copy link
Copy Markdown
Member

This pull request introduces several improvements to code style, formatting, and configuration across the codebase, focusing on Python formatting, VSCode integration, and enhanced logging/error handling in launch and model files. The changes aim to standardize development practices, improve code readability, and ensure better error reporting.

Development environment and code style configuration:

  • Added a .python-version file specifying Python 3.10 to standardize the Python version across environments.
  • Introduced a GitHub Actions workflow (.github/workflows/ruff.yml) to run Ruff for linting on push and pull requests, promoting consistent code style.
  • Updated VSCode settings and extensions: switched the default formatter to Ruff and recommended both astral-sh.ty and charliermarsh.ruff extensions for Python linting/formatting. [1] [2]
  • Removed the .flake8 configuration file, indicating a shift away from Flake8 in favor of Ruff for linting.

Code formatting and logging improvements:

  • Refactored long log/error messages and function calls in launch/launch_all_vehicles.launch.py and launch/launch_site.launch.py to use multi-line formatting for better readability, and improved error handling/logging throughout the node-building process. [1] [2] [3] [4] [5] [6]
  • Improved string formatting and parameter handling in models/frame_member.py and models/graph_member.py, using consistent double quotes and multi-line formatting for clarity. [1] [2]

Code cleanup and consistency:

  • Reordered imports and improved matrix/array formatting in models/frame_utils.py for better readability and PEP8 compliance; also enhanced error messages and added line breaks for clarity in exception handling. [1] [2] [3]

These updates collectively improve the maintainability, reliability, and developer experience of the project.

- Updated `pyproject.toml` to define project metadata and dependencies, including development dependencies for `ruff` and `ty`.
- Added `ruff.toml` configuration file for linting settings and exclusions.
- Refactored `setup.py` to align with new project structure and updated data files.
- Reformatted test files for consistency and improved readability.
- Added `uv.lock` to manage dependencies and versions for the project.
@cdenihan cdenihan changed the title Migrate To Ruff feat: Migrate to Ruff Mar 23, 2026
cdenihan and others added 11 commits March 22, 2026 20:27
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…y if needed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ff script

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant