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

[sebdah-62] Skip pylintrc parameter if file not present #63

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

volviq
Copy link
Contributor

@volviq volviq commented Mar 9, 2018

In case there is no .pylintrc file, skip the --rcfile parameter in
pylintrc invocation.

@volviq volviq force-pushed the sebdah-62-missing-pylintrc branch 2 times, most recently from a5db73e to e6f6fdb Compare March 9, 2018 14:17
Copy link
Owner

@sebdah sebdah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this contribution @volviq. I added a couple of minor nitpicks. But all in all this looks like a good change.

Thanks!

@@ -269,9 +271,11 @@ def check_repo(
if pylint_params:
command += pylint_params.split()
if '--rcfile' not in pylint_params:
command.append('--rcfile={}'.format(pylintrc))
if pylintrc is not None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to if not pylintrc to be more Pythonic.

Copy link
Contributor Author

@volviq volviq Mar 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you mean "change this to if pylintrc"?

else:
command.append('--rcfile={}'.format(pylintrc))
if pylintrc is not None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to if not pylintrc to be more Pythonic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you mean "change this to if pylintrc"?

Do not pass "--rcfile" to pylint, in case .pylintrc is not present.
@volviq volviq force-pushed the sebdah-62-missing-pylintrc branch from e6f6fdb to e3de7bd Compare March 10, 2018 04:51
@volviq
Copy link
Contributor Author

volviq commented Mar 10, 2018

@sebdah nitpicks adressed.

General question: what's the planned release cycle, and when (rough estimate) would you expect then next one to go into pip? I don't know how the process works, so maybe you can't even answer that question.

@sebdah
Copy link
Owner

sebdah commented Mar 11, 2018 via email

@sebdah sebdah assigned sebdah and volviq and unassigned sebdah Mar 12, 2018
@sebdah sebdah merged commit 075ffa1 into sebdah:master Mar 12, 2018
@sebdah
Copy link
Owner

sebdah commented Mar 12, 2018

@volviq I have released version 2.4.0 to PyPI now! Thanks for this PR. Should we close #62 now and keep #61 open still?

@volviq
Copy link
Contributor Author

volviq commented Mar 12, 2018 via email

@volviq volviq deleted the sebdah-62-missing-pylintrc branch March 12, 2018 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants