- 27 9月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
This new flag is added so that off-by-default extensions can be enabled without using --select which (currently) causes several problems with pep8's rule engine. This also adds support to the --enable-extensions flag to be specified as a multi-line config option in an appropriate config file. Closes GitLab #67
-
由 Ian Cordasco 创作于
When taking advantage of the --select flag for off-by-default extensions, we neglected to take into account the fact that leaving the extension names in the select list would cause different behaviour in pep8. This should remedy this. Related to GitLab bug #67
-
- 07 9月, 2015 1 次提交
-
-
由 Luke Plant 创作于
-
- 23 8月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
Refactor how we use StyleGuides for better error recovery In bug 74 we discovered that there are some less than ideal problems around our use of multiprocessing. This is a first attempt at fixing 74 by using a fake StyleGuide object which proxies to the real one, and will catch and handle exceptions and then posibly retry the operation we were trying to perform in the first place. Currently we're only implementing that logic for StyleGuide.check_files but we should be careful to implement this in other functions used in hooks and elsewhere. Note: there may be a simpler way to fix this with a context manager that will do the right thing. That may also prove simpler to implement but that will have a much larger impact on the code-base than this. Related to bug #74 See merge request !36
-
由 Ian Cordasco 创作于
This updates our retry logic to be more specific in catching OSErrors and it adds specific tests to show that it works and properly re-initializes the StyleGuide with the pep8.StandardReport class so we can fall back on serial behaviour gracefully. Closes #74
-
- 21 8月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
This allows us to reuse the same code simply for check_files and input_file. This should cover all uses of the StyleGuide methods. Related to bug #74
-
- 20 8月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
In bug 74 we discovered that there are some less than ideal problems around our use of multiprocessing. This is a first attempt at fixing 74 by using a fake StyleGuide object which proxies to the real one, and will catch and handle exceptions and then posibly retry the operation we were trying to perform in the first place. Currently we're only implementing that logic for StyleGuide.check_files but we should be careful to implement this in other functions used in hooks and elsewhere. Note: there may be a simpler way to fix this with a context manager that will do the right thing. That may also prove simpler to implement but that will have a much larger impact on the code-base than this. Related to bug #74
-
- 19 8月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
Handle EPIPE IOErrors when using more than 1 job If someone is using flake8 and piping it to a command like `head`, the command they are piping flake8's output too may close the pipe earlier than flake8 expects. To avoid extraneous exception output being printed, we now catch IOErrors and check their errnos to ensure they're something we know we can ignore. This also provides flexibility to add further errnos for ignoring on a case-by-case basis. Closes #69 See merge request !35
-
由 Ian Cordasco 创作于
This should prevent bug 69 from regressing in the future and provides a framework for testing the addition of new errnos to the ingore list.
-
- 16 8月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
If someone is using flake8 and piping it to a command like `head`, the command they are piping flake8's output too may close the pipe earlier than flake8 expects. To avoid extraneous exception output being printed, we now catch IOErrors and check their errnos to ensure they're something we know we can ignore. This also provides flexibility to add further errnos for ignoring on a case-by-case basis. Closes #69
-
由 Ian Cordasco 创作于
docs: Adding flake8-import-order plugin to the list of available plugins Solves #77 See merge request !34
-
- 11 8月, 2015 1 次提交
-
-
由 Javier Domingo Cansino 创作于
-
- 10 7月, 2015 8 次提交
-
-
由 Ian Cordasco 创作于
Fix flake8 tests using mock to work with 1.1.x branch See merge request !33
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
Add radon to Existing Extensions section As per the title, just a small addition do the Extensions page of the docs. Related to #73 See merge request !32
-
由 Michele Lacchia 创作于
-
- 02 6月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
This got lost in Vancouver somewhere
-
由 Ian Cordasco 创作于
-
- 01 6月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Closes #61
-
- 18 5月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
This is a quickfix to help openstack unbreak their gate requirements
-
- 30 4月, 2015 5 次提交
-
-
由 Ian Cordasco 创作于
Closes #51
-
由 Ian Cordasco 创作于
-
由 Tyrel Souza 创作于
https://gitlab.com/pycqa/flake8/issues/40 * Adding an ignore option in [flake8] wasn't working because pep8.StyleGuide turned the string sent in into a tuple, which the option parser needs to receive as an iterable that isn't a string. Split on spaces, commas, or semicolons using re.findall in order to get a list of error/warnings to pass to StyleGuide properly. * Add self to contributors (cherry picked from commit 8f8a7d458f8f46669398591bffd93462d4e439ed)
-
由 Ian Cordasco 创作于
Add a note about Windows .flake8 config location The user docs state that configuration is done in ~/.config/flake8, but on Windows it's in ~/.flake8 instead. I updated the docs per MergeRequest #49 request. See merge request !30
-
由 Tyrel Souza 创作于
-
- 19 4月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Utilize generator expression instead of list comprehension See merge request !28
-
- 18 4月, 2015 1 次提交
-
-
由 Corey Farwell 创作于
-
- 06 4月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
Change the git-hook ignore default to None When ignore is an empty string, it will apparently not run any checks at all. Using None as the default ensures that it does run the appropriate checks. Closes #52 See merge request !27
-
由 Ian Cordasco 创作于
When ignore is an empty string, it will apparently not run any checks at all. Using None as the default ensures that it does run the appropriate checks. Closes #52
-
- 17 3月, 2015 3 次提交
-
-
由 Ian Cordasco 创作于
Fix jobs test on Windows Rename the test_warnings.py file to \_test_warnings.py, so that it is not discoverable by nose. Run the tests in \_test_warnings.py separately. Fixes issue pycqa/flake8#44. See merge request !26
-
由 Christian Long 创作于
-
由 Christian Long 创作于
-
- 16 3月, 2015 2 次提交
-
-
由 Christian Long 创作于
-
由 Christian Long 创作于
-
- 12 3月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Fix hook test Fix the git hook test on Windows. Closes #43 See merge request !24
-