PyCQA / flake8

flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
https://flake8.pycqa.org
Other
3.39k stars 306 forks source link

E231 when using f-string #1896

Closed siner308 closed 9 months ago

siner308 commented 9 months ago

how did you install flake8?

pip install flake8

unmodified output of flake8 --bug-report

{
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.10.6",
    "system": "Darwin"
  },
  "plugins": [
    {
      "plugin": "mccabe",
      "version": "0.7.0"
    },
    {
      "plugin": "pycodestyle",
      "version": "2.11.1"
    },
    {
      "plugin": "pyflakes",
      "version": "3.1.0"
    }
  ],
  "version": "6.1.0"
}

describe the problem

what I expected to happen

flake8 must be succeed

sample code

email = "example@address.com
mailto_string = f"mailto:{email}"

commands ran

$ flake8 t.py
E231 missing whitespace after ':'
asottile commented 9 months ago

flake8 does not implement any checks and does not exhibit the error at the versions you're claiming

next time please don't ignore the issue prompts and then the issue template