- 08 12月, 2015 3 次提交
-
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
Let's use an enclosed function to replace the stdin_get_value function on pep8. Closes #107
-
- 04 12月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
Cache stdin for Flake8 plugins Currently plugins (e.g., flake8-docstrings) are struggling to support users passing data in on stdin (e.g., cat file.py | flake8 -). Until pep8 fixes this itself, we can monkey-patch its `stdin_get_value` function to handle the caching for us. Closes #105 See merge request !44
-
由 Ian Cordasco 创作于
Currently plugins (e.g., flake8-docstrings) are struggling to support users passing data in on stdin (e.g., cat file.py | flake8 -). Until pep8 fixes this itself, we can monkey-patch its `stdin_get_value` function to handle the caching for us. Closes #105
-
- 25 11月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Add .flake8 to PROJECT_CONFIG for local config files Closes #103 See merge request !43
-
- 23 11月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
-
- 27 10月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
-
- 26 10月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Release 2.5.0 See merge request !42
-
- 25 10月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
-
- 24 10月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
- 08 10月, 2015 2 次提交
-
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
- 03 10月, 2015 5 次提交
- 28 9月, 2015 1 次提交
-
-
由 Ian Cordasco 创作于
Remove enabled extensions from `options.select` 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 ---- cc @joe-gordon0 See merge request !37
-
- 27 9月, 2015 6 次提交
-
-
由 Ian Cordasco 创作于
Update .travis.yml for Python 3.5 See merge request !40
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
Add better logic for loading entry points As noted in the code, setuptools 11.3 deprecated EntryPoint.load and its require parameter. Starting with 11.3 the preferred way is use EntryPoint.require and EntryPoint.resolve as necessary. Unfortunately, those methods do not exist in all versions of setuptools. So we have to check for them and use them when they're available. Otherwise, we fallback to using EntryPoint.load with the require parameter. Closes #59 Closes #90 See merge request !39
-
由 Ian Cordasco 创作于
As noted in the code, setuptools 11.3 deprecated EntryPoint.load and its require parameter. Starting with 11.3 the preferred way is use EntryPoint.require and EntryPoint.resolve as necessary. Unfortunately, those methods do not exist in all versions of setuptools. So we have to check for them and use them when they're available. Otherwise, we fallback to using EntryPoint.load with the require parameter. Closes #59 Closes #90
-
由 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 4 次提交
-
-
由 Ian Cordasco 创作于
Fix flake8 tests using mock to work with 1.1.x branch See merge request !33
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-
由 Ian Cordasco 创作于
-