1. 27 9月, 2015 2 次提交
    • 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
  2. 07 9月, 2015 1 次提交
  3. 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
  4. 21 8月, 2015 1 次提交
  5. 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
  6. 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
  7. 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
  8. 11 8月, 2015 1 次提交
  9. 10 7月, 2015 8 次提交
  10. 02 6月, 2015 2 次提交
  11. 01 6月, 2015 1 次提交
  12. 18 5月, 2015 2 次提交
  13. 30 4月, 2015 5 次提交
  14. 19 4月, 2015 1 次提交
  15. 18 4月, 2015 1 次提交
  16. 06 4月, 2015 2 次提交
    • Ian Cordasco's avatar
      Merge branch 'bug/52' into 'master' · 159c4930
      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
      159c4930
    • Ian Cordasco's avatar
      Change the git-hook ignore default to None · 12fab2f8
      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
      12fab2f8
  17. 17 3月, 2015 3 次提交
  18. 16 3月, 2015 2 次提交
  19. 12 3月, 2015 1 次提交