-
Notifications
You must be signed in to change notification settings - Fork 579
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
PyLintBear: ignore PyLint rules individually #1475
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ class PyLintBear: | |
|
||
@staticmethod | ||
def create_arguments(filename, file, config_file, | ||
pylint_disable: typed_list(str)=None, | ||
pylint_disable: typed_list(str)='', | ||
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. W291 trailing whitespace' PycodestyleBear (W291), severity NORMAL, section 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. How this solves the problem? |
||
pylint_enable: typed_list(str)=None, | ||
pylint_cli_options: str='', | ||
pylint_rcfile: str=''): | ||
|
@@ -49,8 +49,6 @@ def create_arguments(filename, file, config_file, | |
'--msg-template="L{line}C{column}: {msg_id} - {msg}"') | ||
if pylint_disable: | ||
args += ('--disable=' + ','.join(pylint_disable),) | ||
if pylint_enable: | ||
args += ('--enable=' + ','.join(pylint_enable),) | ||
if pylint_cli_options: | ||
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 guess you should also change the tests. |
||
args += tuple(shlex.split(pylint_cli_options)) | ||
if pylint_rcfile: | ||
|
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.
Line contains following spacing inconsistencies:
SpaceConsistencyBear, severity NORMAL, section
python
.The issue can be fixed by applying the following patch: