diff --git a/setup.cfg b/setup.cfg
index 69dc51b0e4252623e1bbd4f749fbcd3c7217160d..a26fcc24bd147f868446ba58689e63c691bfa671 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,6 @@
 [bdist_wheel]
 universal=1
 
-[aliases]
-test=tox
+[flake8]
+exclude = .tox,*.egg,build,data
+select = E,W,F
diff --git a/tox.ini b/tox.ini
index 42759ccf9adc1582cc729a8718d5f3c16b76f8ff..221ee9476b2a81e2e42c3e3bae00600c0c47cd44 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,3 @@ commands =
     check-manifest --ignore tox.ini,tests*
     python setup.py check -m -r -s
     flake8 .
-
-[flake8]
-exclude = .tox,*.egg,build,data
-select = E,W,F