Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake8 consumes a lot of RAM and 100% CPU usage #1936

Closed
vyunolbek opened this issue May 9, 2024 · 1 comment
Closed

flake8 consumes a lot of RAM and 100% CPU usage #1936

vyunolbek opened this issue May 9, 2024 · 1 comment

Comments

@vyunolbek
Copy link

how did you install flake8?

$ pip install flake8

unmodified output of flake8 --bug-report

{
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.12.3",
    "system": "Linux"
  },
  "plugins": [
    {
      "plugin": "mccabe",
      "version": "0.7.0"
    },
    {
      "plugin": "pycodestyle",
      "version": "2.9.1"
    },
    {
      "plugin": "pyflakes",
      "version": "2.5.0"
    }
  ],
  "version": "5.0.0"
}

describe the problem

what I expected to happen

flake8 succeeds with no issues
...

sample code

A typical project with multiple folders

commands ran

$ flake8 --config=dir/.config/lint.cfg dir
...

I can't attach what the console outputs, because the computer just shuts down due to lack of RAM. Previously, it returned the RecursionError error: maximum recursion depth exceeded. Now he just goes on the defensive

@sigmavirus24
Copy link
Member

There's not enough information to reproduce this and I haven't ever seen it behave like this, even on larger projects like openstack

@sigmavirus24 sigmavirus24 closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants