Commit graph

451 commits

Author SHA1 Message Date
Ian Cordasco
247877b7c5 Prepare release 2.2.5 2014-10-19 21:26:24 -05:00
Ian Cordasco
467233f185 Merge branch 'flush_stdout' into 'master'
Flush stdout

As noted in email, it seems that failing to flush stdout in the sub-processes means that some output might go missing. I've observed this in practice with Syntastic in Vim. Here I flush both stdout and stderr before sending the message back to the main process that will allow it to continue. This makes the problem disappear for me.

It occurs to me that if sub-processes are producing output independently, there is also be a risk that they will badly interleave their output. I haven't looked into this - my primary concern is invocation for a single file at a time.

See merge request !7
2014-10-20 01:31:31 +00:00
Weeble
6e08711622 Flush all subprocess output before exit
Subprocesses write to stdout. They must flush their output before the
main process exits to avoid losing output or confusing the calling
program.
2014-10-19 18:06:19 +01:00
Ian Cordasco
26f909b282 Merge branch 'ignore' into 'master'
make flake8 pass in dirty flake8 root directory

See merge request !6
2014-10-15 22:14:16 +00:00
Joe Gordon
dc5ffac75c Make flake8 pass in root directory
Add exclude list to tox.ini
2014-10-15 15:07:12 -07:00
Ian Cordasco
832ecb63aa Merge branch 'setupdevelop' into 'master'
Add usedevelop to tox.ini

See merge request !5
2014-10-15 21:06:55 +00:00
Ian Cordasco
bc0985787d Loosen the regular expression search
I have seen people who place the comment at the bottom of the file and it
would be backwards incompatible if we did anything but preserve it as a search
instead of match
2014-10-15 15:47:52 -05:00
Joe Gordon
edafc04972 Make _flake8_noqa tighter
Only match '\s*# flake8[:=]\s*nqa' when it happens at the beginning of a
line. The previous version of this regex is incorrectly hitting the
following line:

        # Any "# flake8: noqa" line?

Causing flake8 to not be run on engine.py.
Also fix flake8 issues in engine.py.
2014-10-15 15:47:52 -05:00
Ian Cordasco
a059cb79fd Merge branch 'git' into 'master'
Add a .gitignore file

See merge request !3
2014-10-15 15:26:57 +00:00
Joe Gordon
ab849a9931 Have tox install via setup.py develop
Tox 1.6 has a feature to install code into the virtualenv via 'setup.py
develop' This makes it easier to source the tox virtualenv and test code
changes.
2014-10-14 15:30:50 -07:00
Joe Gordon
a70fc46347 Add a .gitignore file 2014-10-14 13:15:33 -07:00
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