diff --git a/Makefile b/Makefile
index 9689f1e3b68d0bd7f501879bcb6c854c0153a88e..d81534bd53fe76e6244a998aa393a6a86f52ac69 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ help:
 
 # Run the tests through autopep8.
 autopep8:
-	autopep8 -ri tests
+	autopep8 -ri .
 
 # Meta target to call the other targets.
 all: autopep8 test
diff --git a/tox.ini b/tox.ini
index 26c5d1594c48fe755a355a3aee711fd6608c6f97..6fe26a793d5031f67a8f2607ed4fbd987b53df98 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,10 @@
 [tox]
 envlist=py36, py37, py38, py39
 skip_missing_interpreters = true
+
+[pycodestyle]
+max_line_length = 100
+
 [testenv]
 setenv = PASSWORD_STORE_DIR = {env:HOME}/.password-store
 passenv = PYCAOSDBINI