Skip to content

Conversation

ppinchuk
Copy link
Collaborator

@ppinchuk ppinchuk commented Oct 7, 2025

We were several versions behind, which started causing our GHA to find lints that we were not seeing locally.

This PR bumps the Ruff version and fixes outstanding linter issues.

@ppinchuk ppinchuk added this to the Finishing Touches for OSS milestone Oct 7, 2025
@ppinchuk ppinchuk requested review from castelao and Copilot October 7, 2025 23:16
@ppinchuk ppinchuk self-assigned this Oct 7, 2025
@ppinchuk ppinchuk added the chore Maintenance work that does not impact the user label Oct 7, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades Ruff from version 0.8.x to 0.13.3 and addresses linting issues discovered by the newer version. The upgrade ensures consistency between local development and GitHub Actions environments.

  • Updated Ruff and ruff-lsp versions in dependency specifications
  • Fixed linting violations related to unnecessary string conversions in logging statements
  • Added documentation for VSCode Ruff extension configuration
  • Implemented Sphinx autodoc configuration to skip Pydantic methods

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Updated Ruff and ruff-lsp version constraints
docs/source/dev/README.rst Added VSCode configuration guidance for Ruff extension
docs/source/conf.py Added Sphinx setup to skip Pydantic model methods from documentation
compass/validation/location.py Removed unnecessary string conversion in logging statement
compass/validation/content.py Removed unnecessary string conversion in logging statement
compass/scripts/process.py Removed unnecessary string conversion in logging statement
compass/extraction/wind/ordinance.py Removed unnecessary string conversions in multiple logging statements
compass/extraction/solar/ordinance.py Removed unnecessary string conversions in multiple logging statements
compass/extraction/date.py Removed unnecessary string conversion in logging statement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ppinchuk ppinchuk added the topic-python-general Issues/pull requests related to python label Oct 8, 2025
@ppinchuk
Copy link
Collaborator Author

ppinchuk commented Oct 8, 2025

@castelao any comments or can I go ahead and merge?

Copy link
Member

@castelao castelao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing that!

@ppinchuk ppinchuk merged commit 7c68bbf into main Oct 8, 2025
10 checks passed
@ppinchuk ppinchuk deleted the pp/upgrade_ruff branch October 8, 2025 18:52
github-actions bot pushed a commit that referenced this pull request Oct 8, 2025
* Update Ruff

* Add ruff extension instructions for VSCode

* Skip pydantic members in docs

* Linter fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance work that does not impact the user topic-python-general Issues/pull requests related to python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants