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. Like below
pylint mymodule.py
should always work since the current working directory is automatically added on top of the python path like this
pylint directory/mymodule.py
will work if directory is a python package (i.e. has an init.py file or it is an implicit namespace package) or if "directory" is in the python path.
If you keep init.py.py in your module, pylint will treat as python module and run pylint on it. you can use same above commands.