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

Throwing a lint error when there isn't one #1904

Closed L1st3r closed 8 months ago

L1st3r commented 8 months ago

how did you install flake8?

pip install flake8

unmodified output of flake8 --bug-report

{
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.11.7",
    "system": "Linux"
  },
  "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

I have updated my docker compose files to use the new include functionality. Flake8 throws the error:

Incorrect type. Expected "include".yaml-schema: docker-compose.yml

sample code

version: '3.8'

include:
  - ../devops/docker-compose.yml

services:

That does properly call the other docker compose file as well. So I'm not sure why Flake8 is getting upset?

asottile commented 8 months ago

that's not flake8 telling you that -- that's something else

L1st3r commented 8 months ago

Damn my bad!