1. 08 12月, 2015 3 次提交
  2. 04 12月, 2015 2 次提交
    • Ian Cordasco's avatar
      Merge branch 'pep8-stdin-fix' into 'master' · d5e3987a
      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
      d5e3987a
    • Ian Cordasco's avatar
      Cache stdin for Flake8 plugins · 41393c9b
      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
      41393c9b
  3. 25 11月, 2015 1 次提交
  4. 23 11月, 2015 1 次提交
  5. 27 10月, 2015 1 次提交
  6. 26 10月, 2015 1 次提交
  7. 25 10月, 2015 1 次提交
  8. 24 10月, 2015 2 次提交
  9. 08 10月, 2015 2 次提交
  10. 03 10月, 2015 5 次提交
  11. 28 9月, 2015 1 次提交
    • Ian Cordasco's avatar
      Merge branch 'bug/67' into 'master' · bf191227
      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
      bf191227
  12. 27 9月, 2015 6 次提交
    • Ian Cordasco's avatar
      Merge branch 'python-3.5' into 'master' · bf5baf1e
      Ian Cordasco 创作于
      Update .travis.yml for Python 3.5
      
      
      
      See merge request !40
      bf5baf1e
    • Ian Cordasco's avatar
      Update .travis.yml for Python 3.5 · 06466104
      Ian Cordasco 创作于
      06466104
    • Ian Cordasco's avatar
      Merge branch 'bug/90' into 'master' · 7fb3dd6a
      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
      7fb3dd6a
    • Ian Cordasco's avatar
      Add better logic for loading entry points · 0c0eadc0
      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
      0c0eadc0
    • Ian Cordasco's avatar
      Add --enable-extensions flag to Flake8 · 96cb23e2
      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
      96cb23e2
    • Ian Cordasco's avatar
      Remove enabled extensions from `options.select` · 5b7dc392
      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
      5b7dc392
  13. 07 9月, 2015 1 次提交
  14. 23 8月, 2015 2 次提交
    • Ian Cordasco's avatar
      Merge branch 'bug/74' into 'master' · a1154e41
      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
      a1154e41
    • Ian Cordasco's avatar
      Add tests around the OSError retry logic · 9d734158
      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
      9d734158
  15. 21 8月, 2015 1 次提交
  16. 20 8月, 2015 1 次提交
    • Ian Cordasco's avatar
      Refactor how we use StyleGuides for better error recovery · 1c6c1f51
      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
      1c6c1f51
  17. 19 8月, 2015 2 次提交
    • Ian Cordasco's avatar
      Merge branch 'bug/69' into 'master' · e847ed8b
      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
      e847ed8b
    • Ian Cordasco's avatar
      Add a regression test for EPIPE IOErrors · 1ed78df6
      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.
      1ed78df6
  18. 16 8月, 2015 2 次提交
    • Ian Cordasco's avatar
      Handle EPIPE IOErrors when using more than 1 job · d98e1729
      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
      d98e1729
    • Ian Cordasco's avatar
      Merge branch 'master' into 'master' · 57ec990d
      Ian Cordasco 创作于
      docs: Adding flake8-import-order plugin to the list of available plugins
      
      Solves #77
      
      See merge request !34
      57ec990d
  19. 11 8月, 2015 1 次提交
  20. 10 7月, 2015 4 次提交