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-options)
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
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: arch...@mail-archive.com