-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add pylint #188
feat: add pylint #188
Conversation
|
||
# Add files or directories to the blacklist. They should be base names, not | ||
# paths. | ||
ignore=CVS,migrations |
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.
CVS is vestigial
I'm surprised we're ignoring migrations.
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.
new pylint --generate-rcfile generates this same set
# paths. | ||
ignore=CVS,migrations | ||
|
||
# Add files or directories matching the regex patterns to the blacklist. The |
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.
blacklist
# A comma-separated list of package or module names from where C extensions may | ||
# be loaded. Extensions are loading into the active Python interpreter and may | ||
# run arbitrary code | ||
extension-pkg-whitelist= |
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.
whitelist
We may not control this name, but I wonder if it's still a valid configuration name?
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.
from a newly generated rc:
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
# for backward compatibility.)
extension-pkg-whitelist=
# Pylint and this flag can prevent that. It has one side effect, the resulting | ||
# AST will be different than the one from reality. This option is deprecated | ||
# and it will be removed in Pylint 2.0. | ||
optimize-ast=no |
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.
probably long gone - we are at pylint 3
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.
confirmed - no longer relevant
|
||
# Exceptions that will emit a warning when being caught. Defaults to | ||
# "Exception" | ||
overgeneral-exceptions=builtins.Exception |
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.
anachronism?
@@ -0,0 +1,408 @@ | |||
[MASTER] |
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.
MASTER (new pylint generates MAIN)
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.
I think we should take the lessons from here and go with #189 instead
This builds on #187, and should be evaluated after that is merged.
It brings in a copy of the datatracker's .pylintrc, which we should review carefully.