1. 30 7月, 2016 4 次提交
    • Ian Cordasco's avatar
      Bump version for v3.0.3 · 0b861e31
      Ian Cordasco 创作于
      Update release date as well
      0b861e31
    • Ian Cordasco's avatar
      Reset Application.formatter attribute in init_report · 22650e50
      Ian Cordasco 创作于
      For our Legacy API users, StyleGuide.init_report should reset the
      formatter attribute before calling Application.make_formatter().
      
      Closes #200
      22650e50
    • Ian Cordasco's avatar
      Merge branch 'bug/194' into 'master' · b0285576
      Ian Cordasco 创作于
      Re-allow for relative paths for exclude
      
      *Description of changes*
      
      Use the directory that the configuration file is found in as the parent (instead of the current working directory) when normalizing paths.
      
      *Related to:*  #194
      
      See merge request !109
      b0285576
    • Ian Cordasco's avatar
      Re-allow for relative paths for exclude · 63f5f150
      Ian Cordasco 创作于
      Previously, all testing was done from the directory in which the
      configuration file lived, so this bug went unnoticed. However, if you
      run Flake8 against its own source from a directory above, you would
      notice that the patterns in the exclude config value in tox.ini were
      ignored. This is because we (like any reasonable person) are using
      relative paths. The path is relative, however, to the directory in
      which the configuration file was located. So we keep track of which
      directory that is and use that to normalize the paths in the config
      file.
      
      Yes, there is an unrelated change to our tox.ini in this commit as
      well. ;-)
      
      Closes #194
      63f5f150
  2. 29 7月, 2016 12 次提交
  3. 28 7月, 2016 8 次提交
    • Ian Cordasco's avatar
      Merge branch 'patch-1' into 'master' · c0e50665
      Ian Cordasco 创作于
      Fix hyperlink in Links.
      
      
      
      See merge request !102
      c0e50665
    • Jason R. Coombs's avatar
      Fix hyperlink in Links. · 3dd2c90f
      Jason R. Coombs 创作于
      3dd2c90f
    • Ian Cordasco's avatar
      Merge branch 'raise_exception_when_plugin_entry_point_is_not_callable' into 'master' · 4fc4df2f
      Ian Cordasco 创作于
      Raise exception when entry_point not callable
      
      Raise exception when entry_point not callable
      
      E.g.:
      
      ```
      $ .tox/flake8/bin/flake8 mobileweb
      Traceback (most recent call last):
        File ".tox/flake8/bin/flake8", line 9, in <module>
          load_entry_point('flake8', 'console_scripts', 'flake8')()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/cli.py", line 16, in main
          app.run(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 316, in run
          self._run(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 299, in _run
          self.initialize(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 289, in initialize
          self.find_plugins()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 143, in find_plugins
          self.check_plugins.load_plugins()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 375, in load_plugins
          plugins = list(self.manager.map(load_plugin))
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 267, in map
          yield func(self.plugins[name], *args, **kwargs)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 373, in load_plugin
          return plugin.load_plugin()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 173, in load_plugin
          raise failed_to_load
      flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "P999" due to Plugin <module 'teamcity.flake8_plugin' from '/Users/marca/dev/git-repos/teamcity-messages/teamcity/flake8_plugin.pyc'> is not a callable. It might be written for an older version of flake8 and might not work with this version.
      ```
      
      This is nicer than the previous behavior of raising an obscure `PicklingError` and then hanging.
      
      ```
      $ .tox/flake8/bin/flake8 mobileweb
      Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 268, in _feed
          send(obj)
      PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed
      ```
      
      *Related to:*  164
      
      See merge request !101
      4fc4df2f
    • Marc Abramowitz's avatar
      Raise exception when entry_point not callable · d234f22e
      Marc Abramowitz 创作于
      E.g.:
      
      ```
      $ .tox/flake8/bin/flake8 mobileweb
      Traceback (most recent call last):
        File ".tox/flake8/bin/flake8", line 9, in <module>
          load_entry_point('flake8', 'console_scripts', 'flake8')()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/cli.py", line 16, in main
          app.run(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 316, in run
          self._run(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 299, in _run
          self.initialize(argv)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 289, in initialize
          self.find_plugins()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/main/application.py", line 143, in find_plugins
          self.check_plugins.load_plugins()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 375, in load_plugins
          plugins = list(self.manager.map(load_plugin))
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 267, in map
          yield func(self.plugins[name], *args, **kwargs)
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 373, in load_plugin
          return plugin.load_plugin()
        File "/Users/marca/dev/git-repos/flake8/src/flake8/plugins/manager.py", line 173, in load_plugin
          raise failed_to_load
      flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "P999" due to Plugin <module 'teamcity.flake8_plugin' from '/Users/marca/dev/git-repos/teamcity-messages/teamcity/flake8_plugin.pyc'> is not a callable. It might be written for an older version of flake8 and might not work with this version.
      ```
      
      This is nicer than the previous behavior of raising an obscure `PicklingError` and then hanging.
      
      ```
      $ .tox/flake8/bin/flake8 mobileweb
      Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 268, in _feed
          send(obj)
      PicklingError: Can't pickle <type 'module'>: attribute lookup __builtin__.module failed
      ```
      
      See #164
      d234f22e
    • Ian Cordasco's avatar
      Merge branch 'fix-report-ordering' into 'master' · ebc7ffd4
      Ian Cordasco 创作于
      Sort reports by line and column
      
      *Description of changes*
      
      The reports have been incorrectly sorted. This fixes the sorting order to use the line number and then column. It also adds a test to verify that the sorting algorithm works.
      
      *Related to:*  #196
      
      See merge request !100
      ebc7ffd4
    • Fabian Neundorf's avatar
      Sort reports by line and column · ad3b4869
      Fabian Neundorf 创作于
      Originally the reports have been sorted by column and message (without the
      error code), so it didn't order after the line number.
      
      Closes #196
      ad3b4869
    • Ian Cordasco's avatar
      Merge branch 'bug/178' into 'master' · 53455fdf
      Ian Cordasco 创作于
      Match noqa for users with explanations
      
      *Description of changes*
      
      *Related to:*  #178
      
      See merge request !99
      53455fdf
    • Ian Cordasco's avatar
      Match noqa for users with explanations · c0ddc54f
      Ian Cordasco 创作于
      This makes the regular expression a bit more complex, and potentially
      slower, but it will fix the issue where users had noqa comments with
      colons followed by explanations.
      
      Closes #178
      c0ddc54f
  4. 27 7月, 2016 13 次提交
  5. 26 7月, 2016 3 次提交