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

Installing flake8-todos removes flake8-print from plugins #1563

Closed
ntaylorwss opened this issue Mar 5, 2022 · 1 comment
Closed

Installing flake8-todos removes flake8-print from plugins #1563

ntaylorwss opened this issue Mar 5, 2022 · 1 comment

Comments

@ntaylorwss
Copy link

how did you install flake8?

mkdir bug-report
cd bug-report
echo 'print(5)' > bug.py
python3 -m venv bugenv
source bugenv/bin/activate
pip install flake8==4.0.1 flake8-todos==0.1.5 flake8-print==4.0.0

unmodified output of flake8 --bug-report

{
  "dependencies": [],
  "platform": {
    "python_implementation": "CPython",
    "python_version": "3.10.2",
    "system": "Linux"
  },
  "plugins": [
    {
      "is_local": false,
      "plugin": "flake8-todos",
      "version": "1.0.0"
    },
    {
      "is_local": false,
      "plugin": "mccabe",
      "version": "0.6.1"
    },
    {
      "is_local": false,
      "plugin": "pycodestyle",
      "version": "2.8.0"
    },
    {
      "is_local": false,
      "plugin": "pyflakes",
      "version": "2.4.0"
    }
  ],
  "version": "4.0.1"
}

describe the problem

what I expected to happen

Output of flake8 bug.py should be:

bug.py:1:1: T001 print found.

Instead output is empty.

Additionally, I would expect to see both flake8-todos and flake8-print in the plugins section of the flake --bug-report output. After uninstalling flake8-todos, flake8-print reappears, but after reinstalling it, flake8-print disappears.

commands ran

$ flake8 bug.py
...
@asottile
Copy link
Member

asottile commented Mar 5, 2022

report it to one of the plugins. whoever claimed T first should retain it though realistically the 3 letter codes should be used

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