Black and isort have this cool option where you can use .gitignore to select what to ignore, I think that could be useful.