We need to add a third Pylint pre-commit hook to run on the tests directory, similar to the one for the examples directory, except only disable=missing-docstring (leave out invalid-name). As an example, see this commit.
There are very few libraries that have a tests directory, but in moving Pylint to Pre-Commit, we found it failing on the datetime library tests. After discussion, we came to a few of conclusions. One, datetime is special and will be handled on an individual basis. Two, we should not patch all the libraries to include this new pre-commit hook, we should only add it to the libraries that currently have tests directories. Three, we should add the new hook to cookiecutter so it's on any future libraries that may include tests directories.
We need to add a third Pylint pre-commit hook to run on the
tests
directory, similar to the one for theexamples
directory, except onlydisable=missing-docstring
(leave outinvalid-name
). As an example, see this commit.There are very few libraries that have a
tests
directory, but in moving Pylint to Pre-Commit, we found it failing on the datetime library tests. After discussion, we came to a few of conclusions. One, datetime is special and will be handled on an individual basis. Two, we should not patch all the libraries to include this new pre-commit hook, we should only add it to the libraries that currently havetests
directories. Three, we should add the new hook to cookiecutter so it's on any future libraries that may includetests
directories.