-
Notifications
You must be signed in to change notification settings - Fork 8
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 for flake8 triggering for removed files #30
Conversation
that is accomplished by using --diff-filter parameter in git diff (taken from http://stackoverflow.com/questions/6879501/filter-git-diff-by-type-of-change) also this commit changes the log level from error to info when particular VCS is not found
@@ -129,7 +129,7 @@ def get_vcs(self): | |||
try: | |||
vcs = vcs(self.commits, self.options) | |||
except VCSNotInstalledError: | |||
logger.error('Seems like {0} is not installed'.format(vcs.name)) | |||
logger.info('Seems like {0} is not installed'.format(vcs.name)) |
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.
this now will only print in console when verbose flag is used. otherwise it silently fails and proceeds to check other VCS. if none are found, then it flake8-diff will exit with error
that seemed appropriate considering package name
@@ -1,3 +1,7 @@ | |||
__version__ = '0.2.0' | |||
__description__ = ( |
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.
moved short description here so that it can be reused both by setup.py
and in main.py
@gregarmer removed the description from the |
Fix for flake8 triggering for removed files
v0.2.2 is up - https://pypi.python.org/pypi/flake8-diff
|
awesome. thanks @gregarmer |
fixes #29
that is accomplished by using --diff-filter parameter in git diff (taken from http://stackoverflow.com/questions/6879501/filter-git-diff-by-type-of-change)
also this commit changes the log level from error to info when particular VCS is not found
also:
--version
parameter