diff --git a/tox.ini b/tox.ini
index 4f3427737969fabf2293bcf97f3fa917483c5c5f..01f52ced6522ebc60ae94feeb3664ff5326ba1a5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -24,9 +24,9 @@ setenv =
 
 [testenv:lint]
 commands =
-    - poetry run black --check --diff aleksis/ apps/official/
-    - poetry run isort -c --diff --stdout -rc aleksis/ apps/official/
-    poetry run flake8 {posargs} aleksis/ apps/official/
+    - poetry run black --check --diff aleksis/ apps/official/ --exclude "migrations"
+    - poetry run isort -c --diff --stdout -rc -s migrations aleksis/ apps/official/
+    poetry run flake8 {posargs} --exclude-from-doctest migrations aleksis/ apps/official/
 
 [testenv:security]
 commands =