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.44k stars 307 forks source link

w605 indentation #772

Closed asottile closed 3 years ago

asottile commented 3 years ago

In GitLab by @GianniGi on Sep 20, 2020, 12:35

Please describe how you installed Flake8

$ pip install --user flake8

Please describe the problem or feature

I'm using flake8 with coc.nvim inside vim8.2

flake8 shows the w605 error for indentation problems inside comments. The comment can be made with ''' or with #, it shows the error in any casel.

How to reproduce the problem

save a file with extension .py and with this comment

print()

'''
classe \s
<r>[\s]</r>
# 1 condizione\.
# 1 condizione.{1,1}\.

'''
*Please provide the exact, unmodified output of `flake8 --bug-report`*

{
  "dependencies": [],
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.8.3",
    "system": "Linux"
  },
  "plugins": [
    {
      "is_local": false,
      "plugin": "mccabe",
      "version": "0.6.1"
    },
    {
      "is_local": false,
      "plugin": "pycodestyle",
      "version": "2.6.0"
    },
    {
      "is_local": false,
      "plugin": "pyflakes",
      "version": "2.2.0"
    }
  ],
  "version": "3.8.3"
}

I'll uninstall this thing, it doesn't work. Five plugin mantainers everyone is giving blame to the other one

asottile commented 3 years ago

In GitLab by @GianniGi on Sep 20, 2020, 12:36

changed the description

asottile commented 3 years ago

In GitLab by @GianniGi on Sep 20, 2020, 12:37

how do I know where does the warning come from? I use flake8 and coc.nvim on vim

asottile commented 3 years ago

In GitLab by @asottile on Sep 20, 2020, 13:25

at this point I have to assume you're trolling me. the comment I posted on your last issue shows you exactly where W codes come from.

but either way your issue is invalid, you want a raw string (prefixed with a r). if you're confused, search around for your error code.

please don't open another issue or I'll have to block you

asottile commented 3 years ago

In GitLab by @asottile on Sep 20, 2020, 13:26

locked this issue

asottile commented 3 years ago

In GitLab by @GianniGi on Sep 20, 2020, 15:07

changed the description

asottile commented 3 years ago

In GitLab by @GianniGi on Sep 20, 2020, 15:14

changed the description