Skip to content

Conversation

@thomasdesr
Copy link
Contributor

Description

Remove the dual local/CI hook configuration for pydoclint and simplify back to a single hook. The workaround was needed due to jsh9/pydoclint#274, but this was fixed in pydoclint 0.8.3 🎉

  • Upgrade pydoclint from 0.8.1 to 0.8.3
  • Remove separate pydoclint-local and pydoclint-ci hooks
  • Simplify CI lint script to use standard pre-commit run

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@thomasdesr thomasdesr force-pushed the thomas/revert-pydoclint-baseline-workaround branch from 329671d to e5e5fc5 Compare November 26, 2025 16:16
Remove the dual local/CI hook configuration for pydoclint and simplify
back to a single hook. The workaround was needed due to a bug, but this
is now fixed in pydoclint 0.8.3.

- Upgrade pydoclint from 0.8.1 to 0.8.3
- Remove separate pydoclint-local and pydoclint-ci hooks
- Simplify CI lint script to use standard pre-commit run

Signed-off-by: Thomas Desrosiers <thomas@anyscale.com>
@thomasdesr thomasdesr force-pushed the thomas/revert-pydoclint-baseline-workaround branch from e5e5fc5 to eaf19fb Compare November 26, 2025 16:17
@thomasdesr thomasdesr enabled auto-merge (squash) November 26, 2025 16:19
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Nov 26, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully upgrades pydoclint to version 0.8.3 and simplifies the pre-commit hook configuration by removing the dual pydoclint-local and pydoclint-ci hooks. This change addresses the workaround previously needed due to pydoclint's behavior with partial file inputs. The new setup streamlines the linting process by consolidating to a single pydoclint hook that runs on pre-commit and pre-push stages. The removal of the git diff check in ci/lint/lint.sh aligns with the auto-regenerate-baseline=False setting, indicating a shift towards manual management of the pydoclint-baseline.txt file. While this simplifies the configuration, it's important to ensure the new baseline management workflow is clear to maintain docstring quality effectively.

@thomasdesr thomasdesr merged commit 9ee6a92 into ray-project:master Nov 26, 2025
8 checks passed
@thomasdesr thomasdesr deleted the thomas/revert-pydoclint-baseline-workaround branch November 26, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants