These files generated by pylint
. If you have any plugin for auto-linting, which use this linter (such as ALE
), .stats
files will be generated each time you open/save python files, depending on the plugin settings.
If you want to continue using this linter, you can disable generating .stats
files by specifying the persistent
pylint
option as n
(default is y
).
You can also try to set environment variable PYLINTHOME
to point to your directory (FAQ), but there may be a problem with it.
And of course, if you want, you can exclude this linter from the list in the your plugin settings.
More about what the 'persistent' option does.
The problem is, most likely, in the interaction of the calling plugin and the called pylint
, because behavior with generating .stats
files in the same directory with the checked files only works in this case. If you call the pylint
check yourself, without nvim plugin, these files will be generated as declared in FAQ.