Blob Blame History Raw
From 9df7ce8cd33c66fad2370df1a52835169ece4b4f Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@nwra.com>
Date: Thu, 9 May 2019 21:29:30 -0600
Subject: [PATCH 1/3] Switch to pycodestyle

---
 setup.cfg | 4 ++--
 setup.py  | 2 +-
 tox.ini   | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index 8b173f4..9e95b73 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,6 +18,6 @@ replace = version='{new_version}'
 universal = 1
 
 [tool:pytest]
-pep8ignore = E501 W602
-addopts = -v --pep8 test mwclient --cov mwclient
+codestyle_ignore = E501 W602
+addopts = -v --codestyle test mwclient --cov mwclient
 
diff --git a/setup.py b/setup.py
index ec526b9..a3fc96f 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(name='mwclient',
       packages=['mwclient'],
       install_requires=['requests_oauthlib', 'six'],
       setup_requires=pytest_runner,
-      tests_require=['pytest', 'pytest-pep8', 'pytest-cache', 'pytest-cov',
+      tests_require=['pytest', 'pytest-codestyle', 'pytest-cache', 'pytest-cov',
                      'responses>=0.3.0', 'responses!=0.6.0', 'mock'],
       zip_safe=True
       )
diff --git a/tox.ini b/tox.ini
index b0acd46..06766cf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,12 +2,12 @@
 envlist = py27,py34,py35,py36
 [testenv]
 deps=pytest
-    pytest-pep8
+    pytest-codestyle
     responses
     mock
-commands=py.test -v --pep8 mwclient test
+commands=py.test -v --codestyle mwclient test
 
 [flake8]
 max-line-length=90
-[pep8]
+[codestyle]
 max-line-length=90
-- 
2.22.0