I'm using the wemake-python-styleguide for linting my code, and one of the checks outputs this message for every Python file.
So, my questions are: what does it mean, and what does the linter want to see?
Ive searched google, stack overflow, linters git, and chatGPT, but havent found an answer!
You didn't share much detail, so I'm just guessing. I imagine this is the code that's being run: Bandit. And here's the bit that logs the message you're seeing:
b_utils.get_module_qualname_from_path(fname)
is in your case returning anInvalidModulePath
exception. If you check what raises that exception, it is when the path cannot be split into two parts.So I think you're running whatever you're running from the same directory where the
.py
files are, meaning thehead
ofos.path.split(path)
will be empty. Try placing the.py
files in a subdirectory, and see if the message disappears.