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
Ian Cordasco
d3faf6afab
Fix git hook on python 3
...
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.
2013-07-04 11:29:12 -04:00
Ian Cordasco
e2eb1308b1
Minor improvement to docs
2013-07-03 23:40:50 -04:00
Tarek Ziade
26283741b9
we want those links in the doc
2013-06-19 11:48:22 +02:00
Ian Cordasco
ca882263f8
Update this to deal with Marc and Bruno's names
...
Strings are hard, let's introduce hacks.
2013-05-21 23:37:35 -04:00
Austin Morton
98dbd1606a
Add option parsing to setuptools integration
2013-04-17 10:33:08 -04:00
Marc Schlaich
c6623b37d1
Upgrade mccabe.
2013-04-03 16:17:02 +03:00
Rob Hudson
0f90a8aca5
Update hooks.py
...
Added --diff-filter to ignore deleted files.
2013-04-02 15:41:43 -07:00
Ian Cordasco
57417b435a
Merged in develop (pull request #35 )
...
Fix mercurial hook, issue #88
2013-04-01 09:50:13 -04:00
Ian Cordasco
d6c73b454b
The implementation isn't all that important.
...
But when we can display it, we may as well, otherwise there's no point in
displaying it.
2013-03-30 11:35:07 -04:00
Florent Xicluna
06db4e10e5
Fix for Python 2.5 compatibility; issue #98 .
2013-03-30 16:25:50 +01:00
Ian Cordasco
232fcb7c3a
Fix recursive-include pattern in MANIFEST.in
2013-03-29 19:19:21 -04:00
Sébastien CHAZALLET
d1937c946b
Simplier correction
2013-03-29 11:42:11 +01:00
Sébastien CHAZALLET
6f15c265cf
check_code works now as check_file
2013-03-29 10:43:32 +01:00