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 for flake8 triggering for removed files #30

Merged
merged 8 commits into from
Aug 4, 2015

Conversation

miki725
Copy link
Contributor

@miki725 miki725 commented Jul 26, 2015

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:

  • fixed flake8 violations in the repo because why not?
  • added --version parameter

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))
Copy link
Contributor Author

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

@@ -1,3 +1,7 @@
__version__ = '0.2.0'
__description__ = (
Copy link
Contributor Author

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

@miki725
Copy link
Contributor Author

miki725 commented Jul 29, 2015

@gregarmer removed the description from the --version

gregarmer added a commit that referenced this pull request Aug 4, 2015
Fix for flake8 triggering for removed files
@gregarmer gregarmer merged commit 8b98ab5 into dealertrack:master Aug 4, 2015
@gregarmer
Copy link
Collaborator

v0.2.2 is up - https://pypi.python.org/pypi/flake8-diff

running upload
Submitting dist/flake8-diff-0.2.2.tar.gz to https://pypi.python.org/pypi
Server response (200): OK

@miki725
Copy link
Contributor Author

miki725 commented Aug 4, 2015

awesome. thanks @gregarmer

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.

flake8 triggers for deleted files
2 participants