Skip to content

Enable pylint on Travis CI builds #592

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

Merged
merged 4 commits into from
May 19, 2019

Conversation

karlding
Copy link
Collaborator

Run pylint on all Travis CI builds for rules that we currently are
conformant to.

This adds a .pylintrc-wip file, which is intended to be a temporary
stop-gap that contains the current rules that the project is conformant
to. This allows us to incrementally enable pylint rules and have them
them enforced in subsequent code, rather than fixing the violations all
at once.

The .pylintrc file is intended to be the file containing all the
preferred set of rules that the project will eventually be compliant
against.

Currently the .pylintrc files are generated via the default rules:

pylint --generate-rcfile >> .pylintrc
pylint --disable=all --generate-rcfile >| .pylintrc-wip

I don't really have a preference in terms of which linter is being
used, so let me know if you feel strongly about a particular linter.

Run pylint on all Travis CI builds for rules that we currently are
conformant to.

This adds a .pylintrc-wip file, which is intended to be a temporary
stop-gap that contains the current rules that the project is conformant
to. This allows us to incrementally enable pylint rules and have them
them enforced in subsequent code, rather than fixing the violations all
at once.

The .pylintrc file is intended to be the file containing all the
preferred set of rules that the project will eventually be compliant
against.
@karlding karlding requested review from hardbyte and felixdivo May 17, 2019 16:20
@codecov
Copy link

codecov bot commented May 17, 2019

Codecov Report

Merging #592 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #592   +/-   ##
========================================
  Coverage    59.97%   59.97%           
========================================
  Files           63       63           
  Lines         5572     5572           
========================================
  Hits          3342     3342           
  Misses        2230     2230


# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe use 0 since we might run it on our local multicore systems?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Applies to both files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, I was out of town for the last few days. Do you still want me to change this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not too important. We can just do it next time we remove some other exclusions.

Copy link
Collaborator

@felixdivo felixdivo left a comment

Choose a reason for hiding this comment

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

Looks good so far. I only looked through the entire "goal" .pylintrc and it looks fine. Thanks for setting it up! 😄

@felixdivo felixdivo added the QA about improving and maintaining the quality of the library label May 18, 2019
@felixdivo felixdivo added this to the 4.0 Release milestone May 18, 2019
@felixdivo
Copy link
Collaborator

This fixes #579, right?

@hardbyte
Copy link
Owner

This PR only addresses the linter aspect of #579.

@felixdivo felixdivo merged commit d975332 into hardbyte:develop May 19, 2019
@karlding karlding deleted the enable_travis_pylint branch July 11, 2019 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA about improving and maintaining the quality of the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants