-
-
Notifications
You must be signed in to change notification settings - Fork 50
Branch ci lint typecheck fix #540
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
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
89e584f
SIM102 Use a single statement instead of nested statements
lm2612 df05048
C419 Unnecessary list comprehension
lm2612 68ff2b2
SIM102 nested if statements
lm2612 190d8a9
TRY004 Prefer exception instead of ValueError
lm2612 f1ea5b1
SIM118 key in dict instead of key in dict.keys()
lm2612 ac46ea7
SIM118 key in dict instead of key in dict.keys()
lm2612 e3c455b
PERF102 When using only the values of a dict use the method
lm2612 d3a2277
Automatic fixes - removed pass, return, unecessary brackets
lm2612 1fa4a1e
Automatic fixes - removed pass, return, unecessary brackets
lm2612 4f47c59
Automatic fixes - removed pass, return, unecessary brackets
lm2612 ff6e0bc
SIM118 key in dict instead of key in dict.keys()
lm2612 5dd5464
DTZ011 -> datetime.datetime.now(timezone.utc) used isntead
lm2612 045b403
PLC0206 Extracting value from dictionary without calling
lm2612 3f717da
SIM102 Use a single statement instead of nested statements
lm2612 9176f45
C408 Unnecessary call (rewrite as a literal) - re-wrote dict() as { …
lm2612 cb98f59
ignore remaining errors TRY002, LOG015, B008
lm2612 6077e39
added uv lock and removed tests_matrix
lm2612 b4df8f7
logging -> logger to address LOG015, # call on root logger
lm2612 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,4 +33,3 @@ def __init__( | |
| @abstractmethod | ||
| def forward(self) -> torch.Tensor: | ||
| """Run model forward""" | ||
| pass | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,10 @@ target-version = "py310" | |
|
|
||
| [tool.ruff.lint] | ||
| extend-select = ["E", "D", "I"] | ||
| ignore = ["D200","D202","D210","D212","D415","D105"] | ||
| ignore = ["D200","D202","D210","D212","D415","D105", | ||
| "TRY002", # Create your own exception | ||
| "B008", # Do not perform function call typer.Argument | ||
| ] | ||
|
Contributor
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. happy to ignore |
||
|
|
||
| [tool.ruff.lint.mccabe] | ||
| # Unlike Flake8, default to a complexity level of 10. | ||
|
|
||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Avoids the following errors which I was unsure how to deal with: