Skip to content

Commit 73b3620

Browse files
scopjstasiak
authored andcommitted
Require flake8 >= 3.6.0, drop pycodestyle restriction
Fixes current build breakage related to flake8 dependencies. The breakage: $ make flake8 flake8 --max-line-length=110 examples *.py Traceback (most recent call last): File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2329, in resolve return functools.reduce(getattr, self.attrs, module) AttributeError: module 'pycodestyle' has no attribute 'break_after_binary_operator' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 182, in load_plugin self._load(verify_requirements) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 154, in _load self._plugin = resolve() File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2331, in resolve raise ImportError(str(exc)) ImportError: module 'pycodestyle' has no attribute 'break_after_binary_operator' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/virtualenv/python3.5.6/bin/flake8", line 11, in <module> sys.exit(main()) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/main/cli.py", line 16, in main app.run(argv) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/main/application.py", line 412, in run self._run(argv) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/main/application.py", line 399, in _run self.initialize(argv) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/main/application.py", line 381, in initialize self.find_plugins() File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/main/application.py", line 197, in find_plugins self.check_plugins.load_plugins() File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 434, in load_plugins plugins = list(self.manager.map(load_plugin)) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 319, in map yield func(self.plugins[name], *args, **kwargs) File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 432, in load_plugin return plugin.load_plugin() File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/flake8/plugins/manager.py", line 189, in load_plugin raise failed_to_load flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "pycodestyle.break_after_binary_operator" due to module 'pycodestyle' has no attribute 'break_after_binary_operator'.
1 parent e3b7e40 commit 73b3620

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

requirements-dev.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
autopep8
22
coveralls
33
coverage
4-
flake8
4+
# Version restricted because of https://github.com/PyCQA/pycodestyle/issues/741
5+
flake8>=3.6.0
56
flake8-import-order
67
ifaddr
78
nose
89
pep8-naming!=0.6.0
9-
# Version restricted because of https://github.com/PyCQA/pycodestyle/issues/741
10-
pycodestyle<2.4.0

0 commit comments

Comments
 (0)