Consider adding .mypy_cache to default excludes
It does seem like a standard directory many python users might have. See e.g. https://github.com/github/gitignore/pull/2371
Other ideas would be to ignore .* by default or even to parse .gitignore
hey @AlexanderLanin, I have an implementation but the performance in large projects is so poor its currently not in use (see isIgnored). I'm thinking a more performant option would be to parse .gitignore and adapt each rule to glob or regex (git doesn't use the standard glob format). However a repository can have multiple .gitignore files within a repository folder hierarchy which may greatly increase the complexity. If you or anyone else have any ideas on how to implement this please share!
I think this may be a better solution, list all the ignored files by git using git ls-files --others -i --exclude-standard then filter out files in that list