Commit graph

398 commits

Author SHA1 Message Date
Florent Xicluna
6c395673e2 Do not overwrite Git pre-commit hook; closes #149 2014-05-05 21:34:21 +02:00
Florent Xicluna
d67491a104 Use write-only mode 'w' instead of 'w+' for writing hooks 2014-05-05 21:26:37 +02:00
Florent Xicluna
1ea9f12b18 Assume UTF-8 when decoding hg or git output; closes #148 2014-05-05 21:01:05 +02:00
Florent Xicluna
a3ecfbaaf8 Avoid an "imported but unused" warning 2014-04-27 00:44:42 +02:00
Florent Xicluna
ee00aa1d66 Command "setup.py flake8" should check setup.py too 2014-04-27 00:42:32 +02:00
Florent Xicluna
cdeb482a68 Add setup.cfg to support the wheel format 2014-04-27 00:27:56 +02:00
Florent Xicluna
94b59d327e New option --jobs to spawn multiple processes in parallel; closes #146 2014-04-27 00:22:50 +02:00
Florent Xicluna
0d15687282 Mismatch with pep8 documentation 2014-04-26 23:41:28 +02:00
Florent Xicluna
b89fc0dae8 Fix the errors reported by flake8 2014-04-26 23:40:23 +02:00
Florent Xicluna
2255afcb77 Add to the tox.ini tests 2014-04-26 23:40:02 +02:00
Florent Xicluna
eb6025ebff Fix the setuptools command to read the project configuration; closes #144 and #145 2014-04-26 23:30:32 +02:00
Florent Xicluna
5772f274aa Remove obsolete compatibility code 2014-04-26 23:26:31 +02:00
Florent Xicluna
7b36756428 Fix test on Python 2.5 2014-03-31 00:30:38 +02:00
Florent Xicluna
a9ba84d5ff Ignore ./.tox directory 2014-03-30 23:54:36 +02:00
Florent Xicluna
2d62468625 Add a comment for the Nose workaround 2014-03-30 23:47:56 +02:00
Florent Xicluna
5770b171d5 Add option 'doctests' to run Pyflakes checks on doctests too; issue #138 2014-03-30 23:31:19 +02:00
Florent Xicluna
876309ad97 Add changelog entries 2014-03-30 23:04:48 +02:00
Florent Xicluna
04401f8080 Add tox.ini 2014-03-30 22:51:03 +02:00
Florent Xicluna
a6027498a0 Workaround for nose traceback on Python 2.6; fixes #109 2014-03-30 22:50:01 +02:00
Florent Xicluna
6073c7ad89 Update .hgignore 2014-03-30 22:32:32 +02:00
Florent Xicluna
89f0800682 Merged in fr710/flake8 (pull request #41)
Fix Git and Mercurial hooks if no config files are present
2014-03-30 22:15:19 +02:00
Florian Rathgeber
c1db99e4f2 Use try/except/else to disable demandimport 2014-03-27 10:40:26 +00:00
Florian Rathgeber
f678e5daee Minor hg hook refactoring 2014-03-23 18:52:35 +00:00
Florian Rathgeber
b049912317 Pass current directory as paths to pep8 StyleGuide
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.
2014-03-23 18:52:00 +00:00
Florian Rathgeber
39e60d4254 Default hg ignore config to empty instead of None
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.
2014-03-23 18:47:21 +00:00
Florian Rathgeber
45c7138907 Disable mercurial demandimport in _pyflakes module
Disabling in hooks is too late since mercurial already imports
_pyflakes before.

Fixes #88
2014-03-23 18:35:08 +00:00
Ian Cordasco
19252c0404 Bump version that matters 2013-10-26 15:24:32 -05:00
Ian Cordasco
47d2a9ea96 Release v2.1.0 2013-10-26 15:23:55 -05:00
Ian Cordasco
91c67ab7fe Changes for 2.1.0 2013-10-26 15:23:24 -05:00
Florian Rathgeber
b4d786a393 Git and Mercurial hooks respect FLAKE8_LAZY 2013-10-26 14:06:10 -05:00
Florian Rathgeber
016ec97514 Git and Mercurial hooks respect FLAKE8_IGNORE 2013-10-26 14:04:44 -05:00
Florian Rathgeber
ac55c9d419 Git hook respects local configuration files
If none of the Git hook default parameters are overridden, do not
pass them in to the StyleGuide to not override the local
configuration.
2013-10-26 13:58:37 -05:00
Florian Rathgeber
fafa844dce Bugfix: get the parser if no vcs found in install_hook 2013-09-14 16:53:39 +01:00
Ian Cordasco
e761600ca5 Re-add mock since I forgot it was actively being used 2013-10-12 21:29:19 -05:00
Ian Cordasco
d7ee1f9152 Let's actually try out drone.io 2013-10-12 21:27:02 -05:00
Tobias Megies
d8f2bd92b8 revert checking for string and just pass a string to run() instead of a list 2013-10-10 09:16:28 +02:00
Tobias Megies
b98d036e06 bugfix: shift a line into loop 2013-10-10 09:00:42 +02:00
Tobias Megies
06256daf3a remove encoding/decoding of staged files 2013-10-10 09:00:06 +02:00
Tobias Megies
b8bd62dbc2 git hook: try to encode/decode with correct encoding (try to detect from file header) 2013-10-09 21:27:01 +02:00
Tobias Megies
74c6958e57 make git_hook check staged versions of files instead of local version
copies all staged versions of files to check in a temporary folder and runs
checks on this folder.
2013-10-08 12:35:58 +02:00
Ian Cordasco
762bb68968 Ignore .tox directories by default 2013-10-05 08:26:15 -05:00
Ian Cordasco
ac7301c737 Merge default from remote 2013-08-03 16:32:46 -05:00
Ian Cordasco
1d665700e5 These should have been committed over a week ago. 2013-07-27 21:48:36 -05:00
Laurent Bachelier
d9fe125957 Fix hook file permissions
On my system (Python 2.7), I would end up with "--wxr-x--T".
This solution should work everywhere.
2013-07-14 13:15:51 +02:00
Ian Cordasco
d3b8f9a284 A slow start towards rewriting the tests 2013-07-04 23:41:46 -04:00
Ian Cordasco
1e59072600 Start new tests
run_tests will collect and run the tests on python 2.6+ (need to test 2.5)
without nose.
2013-07-04 13:47:01 -04:00
Ian Cordasco
3fbfd0b2d7 Remove broken and useless tests. Update LICENSE
- Added myself to the LICENSE
2013-07-04 13:46:28 -04:00
Florent Xicluna
ec25ce4a4a Report the column number for PyFlakes errors; issue #90 2013-07-04 17:40:20 +02:00
Florent Xicluna
da663a77ca Really upgrade dependencies 2013-07-04 17:39:48 +02:00
Ian Cordasco
a3b4cd6bed Upgrade dependencies. 2013-07-04 11:29:50 -04:00