-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add linters to Travis: Python #264
base: master
Are you sure you want to change the base?
Add linters to Travis: Python #264
Conversation
I think we should configure it with same/similar configuration like in openstack |
I think that most standard/popular way of having configuration for Python linters would be Some more info for consideration with pylint: |
…ters-python # Conflicts: # .travis.yml
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
.travis.yml
Outdated
script: flake8 | ||
- stage: linting-pylint | ||
script: pylint --rcfile=setup.cfg * | ||
- stage: lint-shellcheck |
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.
Remove duplicated shellcheck stage
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.
done
setup.cfg
Outdated
ignore = D203,H201,H302,H405 | ||
# H106: Don’t put vim configuration in source files | ||
# H203: Use assertIs(Not)None to check for None | ||
enable-extensions = H106,H203 |
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.
All Hxxx
are comming from OpenStack hacking
https://docs.openstack.org/hacking/latest/ so it also need to be installed
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.
done
setup.cfg
Outdated
builtins = _ | ||
|
||
[pylint] | ||
disable = C0103,C0111,F0010 |
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.
Put comments with description what are you disabling (like in 2-5 lines)
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.
done
Splitting #191 for manageability