Repository navigation
Add pylint checking - #87
Merged
Merged
Conversation
Brian Kroth (bpkroth)
marked this pull request as ready for review
September 19, 2024 19:24
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
- Coverage 76.84% 76.66% -0.18%
==========================================
Files 23 23
Lines 1058 1067 +9
Branches 132 134 +2
==========================================
+ Hits 813 818 +5
- Misses 195 197 +2
- Partials 50 52 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
| **kwargs, | ||
| ) | ||
|
|
||
| # we read updated file every time |
Contributor
Author
There was a problem hiding this comment.
TODO: restore comment
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
Title
Adds initial pylint checking.
Description
Currently disables the requirement for docstrings on functions, methods, modules, classes, etc.
As discussed with Anna Pavlenko (@apavlen), we can turn those on and add them in a separate PR.
Disables a few other more modern syntax suggestions (e.g., more recent type hint style) in order to preserve backwards compatibility for now.
Adds specific exceptions in a handful of cases (e.g.,
too-many-arguments,too-many-instance-attributes,broad-exception-caught, etc.), withFIXMEmarkers for future cleanup.Ignores
FIXMEmarkers as downgrading the code style score since we use those to mark improvement opportunities.Adds minor changes to fix the rest of things. Examples include:
unused-import_unused_variable(by prefixing with_)encoding="utf-8"for opened files.%sstring encoding forlogging[]as default params (they can be mutable leading to subtle bugs)Closes Add pylint checks #85
Type of Change