Commit graph

359 commits

Author SHA1 Message Date
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
Ian Cordasco
1acc0509ab Document known extensions 2013-03-27 10:24:12 -04:00
Ian Cordasco
490b46c7ab Yay I can't type any more 2013-03-24 16:50:18 -04:00
Ian Cordasco
f333b22ba6 Silly python 2.5 binary is for kids 2013-03-24 16:40:20 -04:00
Ian Cordasco
d29f822b10 Fix #83 (bitbucket)
Tarek had explained to me how important adding specific pins were for
versioning. I forgot to fix this prior to now.
2013-03-24 16:33:48 -04:00
Ian Cordasco
4efd19ce09 Fix #91 (bitbucket)
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.
2013-03-24 15:59:09 -04:00
Ian Cordasco
8935e0f5c1 Update the README to include the mailing list 2013-03-21 11:26:15 -04:00
Florent Xicluna
53f907b1d2 Fix mercurial hook, issue #88 2013-02-26 18:11:20 +01:00
Ian Cordasco
9844142528 Update the VCS docs
Also, update the git_hook auto-installer text.
Fixes #87 on BitBucket
2013-02-26 11:39:17 -05:00
Ian Cordasco
ea1c29ca2e Fixes #86 on bitbucket
Create hgrc if it doesn't exist.
2013-02-25 22:50:57 -05:00
Ian Cordasco
eb327cafb1 Remove flake8/flake8 2013-02-25 21:42:35 -05:00
Ian Cordasco
492b30ded2 Merge develop because we need unified history 2013-02-25 18:04:13 -05:00
Ian Cordasco
4d0861dac4 Fix the develop branch as well. 2013-02-25 18:03:19 -05:00
Ian Cordasco
7220412c46 Merge the other head? I hope. 2013-02-25 18:02:13 -05:00
Ian Cordasco
cec066a85c Merge the pull requests and Florent's changes.
Boy will this history look down right horrible.
2013-02-25 17:55:10 -05:00
Ian Cordasco
02943c496f Merged (bitbucket) pull request #32
From diogobaeder/flake8/default
2013-02-25 17:46:22 -05:00
mrtheb
46315ac5f3 Updated setuptools integration doc 2013-02-25 14:09:30 -05:00
mrtheb
1e32cfb890 sync 2013-02-25 07:29:27 -05:00
Marc Labbe
e3c9383694 Merged tarek/flake8 into default 2013-02-25 07:28:21 -05:00
mrtheb
384ace81dc added back inclusion of flake8.* in MANIFEST.in 2013-02-25 07:27:37 -05:00
Florent Xicluna
4a8c382398 Merge the changes from the 'default' branch 2013-02-25 10:55:24 +01:00
Florent Xicluna
4c4c91fd85 Doc: fix shebang, issue #81 2013-02-25 10:51:55 +01:00
Florent Xicluna
348b484e62 Doc: re-order the chapters 2013-02-25 10:49:01 +01:00
Florent Xicluna
80fe5da14c Fix space 2013-02-25 10:48:36 +01:00
Ian Cordasco
38396f8cc6 Fix a spurious import 2013-02-24 19:50:29 -05:00
Diogo Baeder
7635b0048c Removing trailing spaces (otherwise flake8 doesn't pass flake8 :-) 2013-02-24 21:23:10 -03:00
Diogo Baeder
f8995a9b32 Removing setuptools from setup requirements 2013-02-24 21:18:39 -03:00