pytype
pytype copied to clipboard
Skip files ignored by .gitignore
Can we add an option to make pytype skip checking files ignored by .gitignore?
You can currently tell pytype to skip files in two ways: by adding # pytype: skip-file to the file, or by passing --exclude {file_or_dir} to the pytype run. Does either of these work for your use case?
I do know the exclude option and have been leveraging it. However, it kind of duplicated effort to ignore files both in .gitignore and in the setup.cfg file. It doesn't really make sense for pytype to check files ignored by Git. Some other linting tools support ignoring files in .gitignore.