From df578d608772f19874ddbad16753f4dc07b1e23d Mon Sep 17 00:00:00 2001
From: Thor77 <xXThor77Xx@gmail.com>
Date: Fri, 17 Jul 2015 15:36:25 +0200
Subject: [PATCH] add pep8-tests

---
 .pep8               | 2 ++
 tests/test_style.py | 8 ++++++++
 2 files changed, 10 insertions(+)
 create mode 100644 .pep8
 create mode 100644 tests/test_style.py

diff --git a/.pep8 b/.pep8
new file mode 100644
index 0000000..7c1de86
--- /dev/null
+++ b/.pep8
@@ -0,0 +1,2 @@
+[pep8]
+ignore = E501
diff --git a/tests/test_style.py b/tests/test_style.py
new file mode 100644
index 0000000..b45fb04
--- /dev/null
+++ b/tests/test_style.py
@@ -0,0 +1,8 @@
+import pep8
+
+
+def test_pep8_comformance():
+    ''' Test that the code conforms to PEP8 '''
+    pep8style = pep8.StyleGuide(config_file='.pep8')
+    result = pep8style.check_files(['tsstats.py', 'tests/test_config.py', 'tests/test_general.py', 'tests/test_style.py'])
+    assert result.total_errors == 0