| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Move flake8 2 out of the way | Ian Cordasco | 2016-03-15 | 1 | -297/+0 |
| | | |||||
| * | Isolate the commands that raise OSError | Ian Cordasco | 2015-12-17 | 1 | -4/+6 |
| | | | | | | | | Right now, running the git and hg commands could easily raise an OSError. Let's only catch it in those cases and then use else to install hooks when those are successful. Otherwise, pass on to the next supported VCS | ||||
| * | Fix checking for repo dir without git/hg | adammhaile | 2015-12-16 | 1 | -9/+15 |
| | | |||||
| * | Change the git-hook ignore default to Nonebug/52 | Ian Cordasco | 2015-04-05 | 1 | -1/+1 |
| | | | | | | | | | When ignore is an empty string, it will apparently not run any checks at all. Using None as the default ensures that it does run the appropriate checks. Closes #52 | ||||
| * | Add compatibility layer for Python 2.6 | Ian Cordasco | 2015-03-06 | 1 | -1/+2 |
| | | | | | | | | os.path.relpath on Python 2.6 returns slightly different output than it does on 2.7. Rather than try to write tests around the behaviour, it makes sense to have a common relpath function that behaves the same on every version. | ||||
| * | Merge branch 'local/pr/2' | Ian Cordasco | 2015-03-06 | 1 | -13/+9 |
| |\ | | | | | | | | | Conflicts: flake8/hooks.py | ||||
| | * | Simplify @mpenkov's fix for exclude in git hooks | Ian Cordasco | 2015-03-06 | 1 | -14/+9 |
| | | | | | | | | | | | | | | | | | | | The simpler fix is to ensure that the filename isn't the full path to the temporary file before we check to see if it should be excluded or if it should even match. This also fixes a bug I found while testing the pull request in which no files are checked. | ||||
| * | | Merge remote-tracking branch 'origin/gh/2' | Ian Cordasco | 2015-03-06 | 1 | -1/+7 |
| |\ \ | |||||
| | * | | WIPmpenkov-master | Ian Cordasco | 2015-03-06 | 1 | -6/+5 |
| | |/ | |||||
| | * | Adding unit tests for fix in 218949a | Michael Penkov | 2015-02-07 | 1 | -7/+6 |
| | | | |||||
| | * | Correctly handle exclude patterns in git_hook | Michael Penkov | 2014-11-11 | 1 | -1/+9 |
| | | | |||||
| * | | Refactor some bits of flake8.hooks | Ian Cordasco | 2015-02-22 | 1 | -20/+27 |
| | | | |||||
| * | | Use git config before os.environ | Oleg Broytman | 2015-02-16 | 1 | -7/+40 |
| | | | | | | | | | Get parameter's value using git config before trying os.environ. | ||||
| * | | Minor refactoring | Oleg Broytman | 2015-02-16 | 1 | -4/+3 |
| |/ | |||||
| * | Honor file pattern matching for git hook | Chris Buccella | 2014-09-23 | 1 | -3/+8 |
| | | | | | | | In a config file, a user can use the "filename" option to specify a pattern for matching filenames. The git hook effectively ignores this and only checks files ending in '.py' | ||||
| * | Do not overwrite Git pre-commit hook; closes #149 | Florent Xicluna | 2014-05-05 | 1 | -0/+2 |
| | | |||||
| * | Use write-only mode 'w' instead of 'w+' for writing hooks | Florent Xicluna | 2014-05-05 | 1 | -3/+4 |
| | | |||||
| * | Assume UTF-8 when decoding hg or git output; closes #148 | Florent Xicluna | 2014-05-05 | 1 | -2/+2 |
| | | |||||
| * | Merged in fr710/flake8 (pull request #41) | Florent Xicluna | 2014-03-30 | 1 | -10/+5 |
| |\ | | | | | | | Fix Git and Mercurial hooks if no config files are present | ||||
| | * | Minor hg hook refactoring | Florian Rathgeber | 2014-03-23 | 1 | -3/+1 |
| | | | |||||
| | * | Pass current directory as paths to pep8 StyleGuide | Florian Rathgeber | 2014-03-23 | 1 | -6/+3 |
| | | | | | | | | | | | | | | | | | | | Instead of setting parse_argv to True, which fails if no config files are present, we pass the current directory as the paths keyword argument when creating the pep8 StyleGuide. This causes pep8 to parse local config files as expected and works also if none are present. Requires pep8 68d72a5d or newer. | ||||
| | * | Default hg ignore config to empty instead of None | Florian Rathgeber | 2014-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | Setting it to None is interpreted as the string 'None', which does the wrong thing. Setting it to the empty string gives the right behaviour and allows overriding in config files. | ||||
| * | | Disable mercurial demandimport in _pyflakes module | Florian Rathgeber | 2014-03-23 | 1 | -6/+0 |
| |/ | | | | | | | Disabling in hooks is too late since mercurial already imports _pyflakes before. Fixes #88 | ||||
| * | Git and Mercurial hooks respect FLAKE8_LAZY | Florian Rathgeber | 2013-10-26 | 1 | -1/+10 |
| | | |||||
| * | Git and Mercurial hooks respect FLAKE8_IGNORE | Florian Rathgeber | 2013-10-26 | 1 | -1/+5 |
| | | |||||
| * | Git hook respects local configuration files | Florian Rathgeber | 2013-10-26 | 1 | -3/+24 |
| | | | | | | | If none of the Git hook default parameters are overridden, do not pass them in to the StyleGuide to not override the local configuration. | ||||
| * | Bugfix: get the parser if no vcs found in install_hook | Florian Rathgeber | 2013-09-14 | 1 | -7/+9 |
| | | |||||
| * | revert checking for string and just pass a string to run() instead of a list | Tobias Megies | 2013-10-10 | 1 | -4/+2 |
| | | |||||
| * | bugfix: shift a line into loop | Tobias Megies | 2013-10-10 | 1 | -1/+1 |
| | | |||||
| * | remove encoding/decoding of staged files | Tobias Megies | 2013-10-10 | 1 | -23/+4 |
| | | |||||
| * | git hook: try to encode/decode with correct encoding (try to detect from ↵ | Tobias Megies | 2013-10-09 | 1 | -5/+27 |
| | | | | | file header) | ||||
| * | make git_hook check staged versions of files instead of local version | Tobias Megies | 2013-10-08 | 1 | -7/+37 |
| | | | | | | copies all staged versions of files to check in a temporary folder and runs checks on this folder. | ||||
| * | Fix hook file permissions | Laurent Bachelier | 2013-07-14 | 1 | -4/+3 |
| | | | | | | On my system (Python 2.7), I would end up with "--wxr-x--T". This solution should work everywhere. | ||||
| * | Fix git hook on python 3 | Ian Cordasco | 2013-07-04 | 1 | -0/+8 |
| | | | | | | We were expecting strings not bytearrays and so we'll make sure we get strings. And yes, unicode strings work just fine with this on python 2. | ||||
| * | Update hooks.py | Rob Hudson | 2013-04-02 | 1 | -1/+1 |
| | | | | | Added --diff-filter to ignore deleted files. | ||||
| * | Merged in develop (pull request #35) | Ian Cordasco | 2013-04-01 | 1 | -0/+6 |
| |\ | | | | | | | Fix mercurial hook, issue #88 | ||||
| | * | Fix mercurial hook, issue #88 | Florent Xicluna | 2013-02-26 | 1 | -0/+6 |
| | | | |||||
| * | | Yay I can't type any more | Ian Cordasco | 2013-03-24 | 1 | -1/+1 |
| | | | |||||
| * | | Silly python 2.5 binary is for kids | Ian Cordasco | 2013-03-24 | 1 | -1/+3 |
| | | | |||||
| * | | Fix #91 (bitbucket) | Ian Cordasco | 2013-03-24 | 1 | -2/+7 |
| | | | | | | | | | | | | | | | Non python files were being included in the git hook. Also, I realized that with --install-hook on git projects, the file was not readable to the user. Using binary helps clarify the use of chmod since I had erroneously used the 744 like the commandline does. | ||||
| * | | Update the VCS docs | Ian Cordasco | 2013-02-26 | 1 | -0/+3 |
| | | | | | | | | | | | Also, update the git_hook auto-installer text. Fixes #87 on BitBucket | ||||
| * | | Fixes #86 on bitbucket | Ian Cordasco | 2013-02-25 | 1 | -0/+4 |
| |/ | | | | Create hgrc if it doesn't exist. | ||||
| * | Fix space | Florent Xicluna | 2013-02-25 | 1 | -1/+1 |
| | | |||||
| * | Add docs | Ian Cordasco | 2013-02-22 | 1 | -0/+17 |
| | | |||||
| * | Restore the whole-file-skip feature | Florent Xicluna | 2013-02-20 | 1 | -2/+1 |
| | | |||||
| * | Small refactoring in the hooks module | Florent Xicluna | 2013-02-20 | 1 | -16/+11 |
| | | |||||
| * | Wrong exit code for the VCS hooks | Florent Xicluna | 2013-02-13 | 1 | -2/+2 |
| | | |||||
| * | Fix the commit hooks, hopefully | Florent Xicluna | 2013-02-13 | 1 | -24/+24 |
| | | |||||
| * | Add support for the pep8 config file | Kevin Stanton | 2013-01-09 | 1 | -1/+2 |
| | | | | | Closes #55. | ||||
| * | Mention changes in preparation for 2.0.0 | Ian Cordasco | 2013-01-02 | 1 | -1/+65 |
| | | | | | Working version of --install-hook. | ||||
