-
Notifications
You must be signed in to change notification settings - Fork 429
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
Remove pydocstyle and configure ruff check for D rules #3384
base: main
Are you sure you want to change the base?
Changes from 7 commits
ab31907
53a509b
7ed0c80
4d57230
a1868ed
51965d1
60338c0
69bec6e
c774ed6
fbaabb3
759442b
94d72d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,7 @@ split_on_trailing_comma = true | |
[tool.ruff.lint] | ||
select = [ | ||
"C4", | ||
# TODO port pydocstyle | ||
# "D", # pydocstyle | ||
"D", | ||
eracah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"LOG", | ||
"PERF", | ||
"PLE", | ||
|
@@ -27,7 +26,32 @@ ignore = [ | |
"C408", | ||
"PERF2", | ||
"PERF4", | ||
"D102", | ||
"D105", | ||
"D107", | ||
"D401", | ||
"D203", | ||
"D204", | ||
"D213", | ||
"D215", | ||
"D401", | ||
"D406", | ||
"D407", | ||
"D408", | ||
"D409", | ||
"D413", | ||
"D417", | ||
"D103" | ||
eracah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
".ci*" = ["D"] | ||
"tests/*" = ["D"] | ||
"composer/algorithms/*" = ["D"] | ||
"composer/datasets/*" = ["D"] | ||
"composer/models/*" = ["D"] | ||
"composer/trainer/activation_checkpointing.py" = ["D"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also just add a specific noqa comment at the top of the file to disable it directly in the file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why ignore algorithms/datasets/models? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just used the same ignoring that pydocstyle used. See the lines removed from the the pre-commit yaml |
||
|
||
eracah marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[tool.ruff] | ||
exclude = [ | ||
"build/**", | ||
|
@@ -1075,8 +1099,3 @@ min-public-methods=2 | |
# Exceptions that will emit a warning when being caught. Defaults to | ||
# "BaseException, Exception". | ||
overgeneral-exceptions="BaseException,Exception" | ||
|
||
[tool.pydocstyle] | ||
convention="google" | ||
add_ignore="D102,D105,D107,D401" | ||
add_select="D400,D404" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird indenting here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it weird?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module is double indented after Args