Repository navigation
MNT: Apply Repo-Review suggestions - #1288
Merged
Merged
Conversation
DimitriPapadopoulos
force-pushed
the
repo-review
branch
from
December 25, 2023 23:19
a8eb171 to
c84adc2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1288 +/- ##
=======================================
Coverage 92.24% 92.24%
=======================================
Files 99 99
Lines 12459 12459
Branches 2561 2561
=======================================
Hits 11493 11493
Misses 643 643
Partials 323 323 ☔ View full report in Codecov by Sentry. |
DimitriPapadopoulos
force-pushed
the
repo-review
branch
2 times, most recently
from
December 25, 2023 23:36
ad3aff0 to
10c50af
Compare
DimitriPapadopoulos
force-pushed
the
repo-review
branch
from
December 25, 2023 23:38
10c50af to
1ec8488
Compare
effigies
approved these changes
Dec 26, 2023
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.
Apply some Repo-Review suggestions.
I went for the low-hanging fruits, other changes are more invasive and deserve a PR of their own, such as using a formatter like ruff of black.
Also update minimal Python version for blue. By the way, isn't blue able to understand
requires-python?Fixed issues
Must have
warn_unreachable = trueto pass this check. There are occasionally false positives (often due to platform or Python version static checks), so it's okay to ignore this check. But try it first - it can catch real bugs too.Must have
"ignore-without-code"inenable_error_code = [...]. This will force all skips in your project to include the error code, which makes them more readable, and avoids skipping something unintended.Must have
"redundant-expr"inenable_error_code = [...]. This helps catch useless lines of code, like checking the same condition twice.Must have
"truthy-bool"inenable_error_code = []. This catches mistakes in using a value as truthy if it cannot be falsey.Issues ignored
Left for later because it requires extensive fixes:
Must have
strictin the mypy config. MyPy is best with strict or nearly strict configuration. If you are happy with the strictness of your settings already, ignore this check or setstrict = falseexplicitly.