Repository navigation
Update style guide for Ruff linting and formatting - #1011
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1011 +/- ##
=======================================
Coverage 59.86% 59.86%
=======================================
Files 33 33
Lines 3179 3179
=======================================
Hits 1903 1903
Misses 1276 1276 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jimdale
approved these changes
Nov 24, 2026
jimdale
left a comment
Contributor
There was a problem hiding this comment.
This all looks good - I don't have any improvements to suggest
valyo
requested changes
Nov 24, 2026
# Conflicts: # SPRINTLOG.md
valyo
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Before Marking as Ready for Review
dev(or other targeted branch)SPRINTLOG.mdif neededIf the target branch is
master:Summary
The style guide was copied from dds_web and still said that this repository doesn't use pylint, that we format with Black, and that the line length is 88 (with 120 as the goal). Since #927 we use Ruff for both linting and formatting. The pylint section now says that, points to the configuration in
pyproject.toml, and describes what the Ruff workflow runs and how to fix issues locally. The line length section now says 100, which is whatruff formatuses, and that long lines are not linted sinceE501is ignored.Related Issue/Ticket
HMS-2494
Testing
Checked each statement against
pyproject.tomland.github/workflows/lint-ruff.yml, and withruff rulethat the ignoredPLR0914andPLR0917are preview rules in ruff 0.15.2, which is why the text says "stable pylint rules".ruff check .andruff format --check .with ruff 0.15.2 pass on the branch, andprettier --check .passes. The file isn't part of the Sphinx docs, so there was nothing to build.Reviewer Notes
requirements-dev.txtinstalls ruff without a version while the workflow pins 0.15.2, so the guide says to use the version from the workflow.dds_web has the same file with the same outdated text, but dds_web still uses Black (at 100), so that is left for a separate ticket.
Once all boxes are checked, mark the PR as Ready for Review and tag at least one team member as the initial reviewer.