diff --git a/lint.sh b/lint.sh
index 32fbffb20ce4f5ea07b8743b0c7416bd7f14bfbe..1679b2381979a9aca4934362f9a3f43c2d597fb3 100755
--- a/lint.sh
+++ b/lint.sh
@@ -7,7 +7,7 @@ set -o errexit
 # - https://bitbucket.org/logilab/pylint/issues/701/false-positives-with-not-an-iterable-and
 # - https://bitbucket.org/logilab/pylint/issues/58
 
-find . -name '*.py' -not -name 'versioneer.py' -not -name _version.py \
+find . -name '*.py' -not -path "./docs/*" \
   | xargs pylint \
   --errors-only \
   --disable=print-statement,unsubscriptable-object,not-an-iterable,no-member