In GitLab by @pawelrubin19 on Nov 27, 2019, 13:16
flake8 crashes when checking python programs that use walrus operator.
python script:
n = 0
while n := n + 1 < 10:
print("I love flake8")
flake8 output:
"pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'"
Run flake8 with greater verbosity to see more details
simple.py:2:9: E701 multiple statements on one line (colon)
simple.py:2:9: E231 missing whitespace after ':'
flake8 installation
I've installed flake8 within pipenv environment
$ pipen install --dev flake8
output of flake8 --bug-report
{
"dependencies": [
{
"dependency": "entrypoints",
"version": "0.3"
}
],
"platform": {
"python_implementation": "CPython",
"python_version": "3.8.0",
"system": "Linux"
},
"plugins": [
{
"is_local": false,
"plugin": "mccabe",
"version": "0.6.1"
},
{
"is_local": false,
"plugin": "pycodestyle",
"version": "2.5.0"
},
{
"is_local": false,
"plugin": "pyflakes",
"version": "2.1.1"
}
],
"version": "3.7.9"
}
In GitLab by @pawelrubin19 on Nov 27, 2019, 13:16
flake8 crashes when checking python programs that use walrus operator.
python script:
flake8 output:
flake8 installation
I've installed flake8 within
pipenvenvironmentoutput of
flake8 --bug-report{ "dependencies": [ { "dependency": "entrypoints", "version": "0.3" } ], "platform": { "python_implementation": "CPython", "python_version": "3.8.0", "system": "Linux" }, "plugins": [ { "is_local": false, "plugin": "mccabe", "version": "0.6.1" }, { "is_local": false, "plugin": "pycodestyle", "version": "2.5.0" }, { "is_local": false, "plugin": "pyflakes", "version": "2.1.1" } ], "version": "3.7.9" }