Flake8 build error in Travis
See original GitHub issueFlake8 checks are currently failing with the following for all files:
.tox/flake8/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
.tox/flake8/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
.tox/flake8/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
.tox/flake8/lib/python3.8/site-packages/_pytest/runner.py:134: in pytest_runtest_call
item.runtest()
.tox/flake8/lib/python3.8/site-packages/pytest_flake8.py:119: in runtest
found_errors, out, err = call(
.tox/flake8/lib/python3.8/site-packages/py/_io/capture.py:150: in call
res = func(*args, **kwargs)
.tox/flake8/lib/python3.8/site-packages/pytest_flake8.py:191: in check_file
app.parse_preliminary_options_and_args(args)
E AttributeError: 'Application' object has no attribute 'parse_preliminary_options_and_args'
Failed builds:
- https://travis-ci.org/github/scrapy/scrapy/jobs/686060612
- https://travis-ci.org/github/scrapy/scrapy/jobs/685973155
I suspect there might have been some change in a recent release of pytest-flake8
, and pinning the version would solve the problem.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Travis-CI: Do not fail build because of linter warnings
Adding --exit-zero flag to flake8 allows lint warnings/errors to be displayed without failing the Travis build.
Read more >Fix travis-ci build on django-netjsongraph (flake8 error)
Check the failed travis build and understand why, then perform a development installation (see the README), run the same check that fails on...
Read more >How to view detailed travis flake8 errors? - Plone Community
For the first question, you could run bin/code-analysis locally and you should see all flake8 errors. If you used plone.recipe.codeanalysis, it ...
Read more >[1/1] Travis-CI: run flake8 on Python code - Patchwork
flake8 is a Python linter which is able to detect issues in Python code (syntax errors, undefined variables, etc.). It has been used...
Read more >Sudden failures for the same commit despite no changes in ...
These errors don't make sense, since the exact same build succeeded a few days ago. I can only conclude that something in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems fixed 🎉
Passing PR: https://github.com/scrapy/scrapy/pull/4572
Yup, I was evaluating if we should pin flake8 or wait for an upstream fix to arrive. Nice work on the fix!