pythonpylint

pylint scanning is different between Windows and Linux


I have a Python project that I want to scan with Pylint. Once I run pylint **/*.py I get different results between Windows and Linux machines, under the same Python and Pylint versions, same working directory, and same .pylintrc config.

pylint 3.2.7
astroid 3.2.4
Python 3.12.4 

For example, when I run pylint --verbose **/*.py on Windows I get Checked 23 files, skipped 0 files but on Linux I get Checked 6 files, skipped 0 files (Windows scan is right, I have 23 Python files in the repo).

I don't understand why the number of files it finds is different. Any idea why this is happening?


Solution

  • pylint . --recursive should discover your python files the same way under Windows and Linux.