Skip to content

Standardize coding style in DSPy #7885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 6, 2025

Conversation

chenmoneygithub
Copy link
Collaborator

As one step towards stable package (DSPy 3.0), we will enforce the python style for easy maintenance and scalability.

This PR just contains the desired ruff rules, and we will make separate PRs to fix files according to the rule. After everything is fixed we will check in this PR and enable style check and pre-commit hook.

@chenmoneygithub chenmoneygithub marked this pull request as draft February 28, 2025 23:10
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []

[tool.ruff.format]
docstring-code-format = false
quote-style = "double"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already the default value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, just want to explicitly note this out.

@chenmoneygithub chenmoneygithub changed the title [DO NOT MERGE] enable style check Standardize coding style in DSPy May 16, 2025
@chenmoneygithub chenmoneygithub marked this pull request as ready for review May 16, 2025 00:16
@okhat okhat merged commit a304b13 into stanfordnlp:main Jun 6, 2025
3 checks passed
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.

3 participants