Files are reported with fixed errors, but are never changed. Our theory is the file is changed back and forth a few times in the pass?
Add trailing commas......................................................Failed
hookid: add-trailing-comma
Files were modified by this hook. Additional output:
Rewriting readthedocs/restapi/client.py
autoflake................................................................Passed
yapf.....................................................................Failed
hookid: yapf
Files were modified by this hook.
Sort python imports......................................................Failed
hookid: python-import-sorter
Files were modified by this hook. Additional output:
ERROR: /Users/anthony/secure/dev/readthedocs.org/readthedocs/restapi/client.py Imports are incorrectly sorted.
Fixing /Users/anthony/secure/dev/readthedocs.org/readthedocs/restapi/client.py
docformatter.............................................................Passed
autopep8 wrapper.........................................................Passed
Check for added large files..............................................Passed
Debug Statements (Python)................................................Passed
Fix double quoted strings................................................Passed
Fix End of Files.........................................................Passed
Fix python encoding pragma...............................................Passed
Check for merge conflicts................................................Passed
Check for broken symlinks............................(no files to check)Skipped
Trim Trailing Whitespace.................................................Passed
Flake8...................................................................Failed
hookid: flake8
Traceback (most recent call last):
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve
return functools.reduce(getattr, self.attrs, module)
AttributeError: module 'pycodestyle' has no attribute 'break_around_binary_operator'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 178, in load_plugin
self._load(verify_requirements)
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 150, in _load
self._plugin = resolve()
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2332, in resolve
raise ImportError(str(exc))
ImportError: module 'pycodestyle' has no attribute 'break_around_binary_operator'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/bin/flake8", line 11, in <module>
sys.exit(main())
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/main/cli.py", line 16, in main
app.run(argv)
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/main/application.py", line 396, in run
self._run(argv)
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/main/application.py", line 383, in _run
self.initialize(argv)
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/main/application.py", line 365, in initialize
self.find_plugins()
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/main/application.py", line 191, in find_plugins
self.check_plugins.load_plugins()
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 423, in load_plugins
plugins = list(self.manager.map(load_plugin))
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 311, in map
yield func(self.plugins[name], *args, **kwargs)
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 421, in load_plugin
return plugin.load_plugin()
File "/Users/anthony/.cache/pre-commit/repo3p_jue5e/py_env-python3.6/lib/python3.6/site-packages/flake8/plugins/manager.py", line 186, in load_plugin
raise failed_to_load
flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "pycodestyle.break_around_binary_operator" due to module 'pycodestyle' has no attribute 'break_around_binary_operator'.
prospector...............................................................Passed