Ian Cordasco
2cf10d26a3
Release v2.2.4
2014-10-09 16:56:01 -05:00
Ian Cordasco
7fd24c2983
Make --install-hook work without config files
...
In short, pep8's option processing would bomb out if there were neither args
provided or config files present (setup.cfg, tox.ini, .pep8, ...).
--install-hook should work regardless of whether a config file is present or
not, so we use a callback to add an argument to the parser's internal argument
list and skip the check altogether. Links for context are in the comments in
this diff.
2014-10-09 16:44:52 -05:00
Ian Cordasco
be67f9784b
Only initialize options.exclude if it is false-y
...
Fixes #4 on GitLab
2014-10-09 14:58:48 -05:00
Ian Cordasco
69ed788443
When run as a setuptools command, the previous fix breaks flake8
2014-10-09 14:24:45 -05:00
Ian Cordasco
25c4f52afa
Fix GitLab #3 by actually excluding .tox
...
This preserves backwards compatibility in the event someone was using
EXTRA_IGNORE as it should have been used
2014-10-09 14:09:36 -05:00
Ian Cordasco
752790e4ea
Merge branch 'git_hook-file_pattern_match' into 'master'
...
Git hook file pattern match
I found that with the git hook installed, flake8 was failing to check some files. Upon examination, I found that the hook is coded to only consider files ending in '.py'. This works out to be an override of the expected behavior, which is to honor the "filename" option in tox.ini.
See merge request !1
2014-10-03 14:01:18 +00:00
Chris Buccella
c0dd7c870c
Honor file pattern matching for git hook
...
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'
2014-09-23 00:54:39 -04:00
Ian Cordasco
876e283d38
Refactor Lukasz's work
2014-09-13 12:38:25 -05:00
Joseph Kahn
51955f9664
got rid of extra line added by accident.
2014-09-13 12:13:04 -05:00
Joseph Kahn
a4017bb090
Added my own extensions to the known extensions list, shameless self promotion.
2014-09-13 12:12:59 -05:00
Lukasz Dobrzanski
e6e655536c
Applied icordasc PR comments
2014-09-13 12:12:23 -05:00
Lukasz Dobrzanski
cbba9faf9e
Fix SIGINT when running on multiprocessing
...
^C was making the script hang (few scenarios possible).
This patch makes sure that the queue operations won't block forever.
Potentially related to #167
2014-09-13 12:11:32 -05:00
Ian Cordasco
e6cb9528d3
Disable multiprocessing when using stdin
...
Fixes #165
2014-09-12 22:36:37 -05:00
Ian Cordasco
79c80c3181
Move fix for #164
2014-09-12 16:50:54 -05:00
Ian Cordasco
552e298a2c
Disable --jobs on Windows
...
Fixes #164
2014-09-12 16:49:34 -05:00
Ian Cordasco
34a2c12be8
Disable multiprocessing when using --diff
...
Fixed #166
2014-09-11 20:14:07 -05:00
Ian Cordasco
475b5a386e
Merged in lukmdo/flake8/switch_use_unitest (pull request #48 )
...
Use unittest.mock if available
2014-09-09 20:32:01 -05:00
Lukasz Dobrzanski
c3d7e68a2b
Use unittest.mock if available
...
Use unittest.mock https://docs.python.org/3/library/unitetst.mock.html
starting from >= Python 3.3
2014-09-10 01:15:01 +01:00
Ian Cordasco
02b955453e
Release v2.2.3
2014-08-25 19:03:13 -05:00
Ian Cordasco
568d7751eb
Release v2.2.3
2014-08-25 19:02:46 -05:00
Ian Cordasco
dec58991d6
Actually enable auto job configuration by default
2014-08-25 19:01:40 -05:00
Ian Cordasco
4053bb842a
Release v2.2.2
2014-07-04 21:53:14 -05:00
Ian Cordasco
2a3ad47563
Removed tag 2.2.2
2014-07-04 21:52:54 -05:00
Ian Cordasco
3d83d1efee
Merge bitbucket remote
2014-07-04 21:52:45 -05:00
Ian Cordasco
3748048f75
Release v2.2.2
2014-07-04 21:51:37 -05:00
Ian Cordasco
397bcc4c96
Bump flake8 version number
2014-07-04 21:51:34 -05:00
Ian Cordasco
62ff350d1e
Update CHANGES for 2.2.2
2014-07-04 21:50:41 -05:00
Ian Cordasco
88f9059782
Merged in flox/flake8/mp-win32 (pull request #45 )
...
Allow to configure multiple jobs on Windows; issues #153 and #154 . Closes #153 , #154 , #156
2014-07-02 09:46:14 -05:00
Florent Xicluna
976d3374b9
Allow to configure multiple jobs on Windows; issues #153 and #154
2014-07-01 00:46:54 +02:00
Ian Cordasco
146bd51404
Added tag 2.2.1 for changeset fabf3cf87eaf
2014-06-30 08:49:57 -05:00
Ian Cordasco
8a0ac48df6
Prepare for v2.2.1
2014-06-30 08:49:44 -05:00
Ian Cordasco
a0e3f364b1
Merge Florent's multiprocessing work over Joe's
2014-06-27 07:57:45 -05:00
Ian Cordasco
8a18ab3f1d
Release v2.2.0
2014-06-22 21:20:59 -05:00
Ian Cordasco
54b0030531
Bump information necessary to release v2.2.0
2014-06-22 21:20:23 -05:00
Martijn Faassen
e12caff58a
Fix typo in command.
2014-06-18 15:37:21 +02:00
Martijn Faassen
c208ce9378
Update this to document --install-hooks instead of distracting red herring
...
of the old way to do this.
2014-06-18 15:33:19 +02:00
Joe Gordon
549cb7ff7d
NotImplimentedError => NotImplementedError
2014-05-27 23:21:57 +00:00
Florent Xicluna
573a217d6c
Fix the test suite
2014-05-23 15:55:59 +02:00
Florent Xicluna
f40cf8e030
Accept 'auto' for --jobs, and default to cpu_count(); issue #151
2014-05-23 15:43:52 +02:00
Joe Gordon
1afa025166
engine.py edited online with Bitbucket
2014-05-21 01:40:21 +00:00
Joe Gordon
b8539760f6
Default jobs to cpu_count; closes #151
...
Instead of defaulting jobs to 1, default to cpu_count so everyone can take
advantage of concurrency by default. This means most users will have one
less configuration option that needs to be set.
2014-05-15 21:30:57 -07:00
Florent Xicluna
ed6d0398bc
Add support for 'python -m flake8' on Python >= 2.7; issue #85
2014-05-05 22:08:03 +02:00
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