Skip to content
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

Fix read_config_file using quiet keyword with older pylint versions #267

Merged
merged 1 commit into from
Jul 27, 2018
Merged

Fix read_config_file using quiet keyword with older pylint versions #267

merged 1 commit into from
Jul 27, 2018

Conversation

justke86
Copy link

When the previous change was implemented to allow the config_from_file
method within the pylint tools to use the quiet keyword in older
versions of pylint, the quiet keyword was added to the if block when
the pylint version is 2.0 or greater instead of the else block for when
the pylint version is less than (older) than 2.0

When the previous change was implemented to allow the `config_from_file`
method within the pylint tools to use the `quiet` keyword in older
versions of pylint, the `quiet` keyword was added to the if block when
the pylint version is 2.0 or greater instead of the else block for when
the pylint version is less than (older) than 2.0
@coveralls
Copy link

coveralls commented Jul 24, 2018

Pull Request Test Coverage Report for Build 610

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 5 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.2%) to 76.2%

Changes Missing Coverage Covered Lines Changed/Added Lines %
prospector/tools/pylint/linter.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
prospector/tools/init.py 1 100.0%
prospector/exceptions.py 1 100.0%
prospector/message.py 1 74.58%
prospector/tools/pylint/linter.py 2 64.71%
Totals Coverage Status
Change from base Build 605: 0.2%
Covered Lines: 1492
Relevant Lines: 1958

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 610

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 5 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.2%) to 76.2%

Changes Missing Coverage Covered Lines Changed/Added Lines %
prospector/tools/pylint/linter.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
prospector/tools/init.py 1 100.0%
prospector/exceptions.py 1 100.0%
prospector/message.py 1 74.58%
prospector/tools/pylint/linter.py 2 64.71%
Totals Coverage Status
Change from base Build 605: 0.2%
Covered Lines: 1492
Relevant Lines: 1958

💛 - Coveralls

@chocoelho chocoelho merged commit c3b9698 into landscapeio:develop Jul 27, 2018
@chocoelho
Copy link
Contributor

Thanks for the contribution @justke86

@rh0dium
Copy link

rh0dium commented Jul 30, 2018

Hey guys - Great stuff. Any ideas when this will get merged into master?

@albailey
Copy link

This introduces a bug when using pylint < 2.0
That quiet flag was only briefly exposed in 2.0.0
pylint-dev/pylint@49eae8a#diff-997d0dc47a16d8d1e081208d0a0c3eea
and a couple days later they changed it to verbose instead.

If you try to run prospector in python2 (ie: pylint 1.9) you cannot pass in --pylint-config-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants