tylerwince / flake8-bandit

Automated security testing using bandit and flake8.
MIT License
110 stars 23 forks source link

Unable to find qualified name for module: file.py #29

Open cgahr opened 2 years ago

cgahr commented 2 years ago

Hi,

since version 3.0.0, I get a the error Unable to find qualified name for module: file.py. when I run flake8.

How to reproduce

print("Oh no!")

* Expected Result:
```bash
> flake8 .
./file.py:1:1: F401 'numpy as np' imported but unused

running flake8 . actually works:

I'm looking forward to your reply.

C

sundaymtn commented 2 years ago

I was able to make this error go away for noxfile.py by putting ./ in front of that filename in my .flake8 configuration file locations = "src", "tests", "./noxfile.py"

previously the line was locations = "src", "tests", "noxfile.py" which resulted in Unable to find qualified name for module: noxfile.py