E211 whitespace before '('
SamuelLarkin opened this issue · comments
how did you install flake8?
pre-commit/action@v3.0.1
`pip install flake8`
unmodified output of flake8 --bug-report
{
"platform": {
"python_implementation": "CPython",
"python_version": "3.10.14",
"system": "Linux"
},
"plugins": [
{
"plugin": "mccabe",
"version": "0.7.0"
},
{
"plugin": "pycodestyle",
"version": "2.12.0"
},
{
"plugin": "pyflakes",
"version": "3.2.0"
}
],
"version": "7.1.0"
}
describe the problem
Given the following partial snipet of code
...
case (
TargetTrainingTextRepresentationLevel.ipa_phones
| TargetTrainingTextRepresentationLevel.phonological_features
):
duration = self._load_file(...
the error message is
everyvoice/model/e2e/dataset.py:113:21: E211 whitespace before '('
Surely, we are not expected to write case(
?!
Turns out that my .pre-commit-config.yaml
was using:
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
instead ofrev: v4.6.0
repo: https://github.com/pycqa/flake8
rev: 3.8.3
instead ofrev: 7.1.0
index 7c2442bd2..ff6983c09 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.4.0
+ rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
@@ -25,7 +25,7 @@ repos:
stages: [commit]
# We do flake8 last since black fixes a lot of the stuff it complains about
- repo: https://github.com/pycqa/flake8
- rev: 3.8.3
+ rev: 7.1.0
hooks:
- id: flake8
# We do mypy last because it's the slowest of them all
please read the template next time! the bold part!