diff --git a/tox.ini b/tox.ini
index 00511c1d66..8ed9da9e07 100644
--- a/tox.ini
+++ b/tox.ini
@@ -63,4 +63,4 @@ commands =
 
 [flake8]
 show-source = True
-exclude=.git,.tox,doc
+exclude=.git,.tox,doc,ansible/library