Valid file names for Pylint

Hello, In Pylint's documentation, it is stated that It is also possible to analyze Python files, with a few restrictions. The thing to keep in mind is that Pylint will try to convert the file name to a module name, and only be able to process the file if it succeeds. (https://pylint.readthedocs.io/en/latest/user_guide/run.html#command-line-opt...) However, I can do this: $ echo "import this" > foo-bar.py $ pylint foo-bar.py ************* Module foo-bar foo-bar.py:1:0: C0103: Module name "foo-bar" doesn't conform to snake_case naming style (invalid-name) foo-bar.py:1:0: C0114: Missing module docstring (missing-module-docstring) foo-bar.py:1:0: W0611: Unused import this (unused-import) ---------------------------------------------------------------------- Your code has been rated at -20.00/10 (previous run: -20.00/10, +0.00) which I expected not work given that dashes are not permitted in Python module names. So, does the documentation need updating, and if not, how should I interpret it? Best regards, Jean Abou Samra
participants (1)
-
Jean Abou Samra