Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

tests: replace pep8 with flake8

Brendan Coles400fa5ad27c6
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 00000000..2765295e
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,2 @@
+[tool:pytest]
+flake8-max-line-length = 200
diff --git a/test/disabled_test_pep8.py b/test/disabled_test_pep8.py
deleted file mode 100644
index 4ab9bb51..00000000
--- a/test/disabled_test_pep8.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# https://pep8.readthedocs.io/en/latest/advanced.html
-import os
-import unittest
-import pycodestyle
-
-class TestPep8(unittest.TestCase):
- """Run PEP8 on all files in this directory and subdirectories."""
- def test_pep8(self):
- style = pycodestyle.StyleGuide(quiet=False)
- style.options.max_line_length = 200
- #style.options.ignore += ('W',)
-
- filenames = []
- for root, _, files in os.walk('.'):
- python_files = [f for f in files if f.endswith('.py')]
- for file in python_files:
- filename = '{0}/{1}'.format(root, file)
- filenames.append(filename)
-
- check = style.check_files(filenames)
- self.assertEqual(check.total_errors, 0, 'Found %d code style errors and warnings' % check.total_errors)