Skip to content

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

tests: add flake8 dlint checks

Brendan Coles7011ecb5a26d
diff --git a/requirements_test.txt b/requirements_test.txt
index 439db59c..5440a56a 100644
--- a/requirements_test.txt
+++ b/requirements_test.txt
@@ -1,4 +1,5 @@
-r requirements.txt
+dlint==0.10.3
pytest==5.3.0
pytest-mock==1.12.0
responses==0.10.6
diff --git a/setup.cfg b/setup.cfg
index 465364c5..6c889faf 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,8 +1,9 @@
[flake8]
flake8-max-line-length = 120
max-complexity = 100
-select = C,E,F,W,B
-ignore = E501 W503 B006
+select = C,E,F,W,B,DUO
+ignore = E501 W503 B006 DUO130
per-file-ignores =
spiderfoot/__init__.py:F401
- sfcli.py:W605
+ sfcli.py:W605,DUO106
+ sflib.py:DUO122,DUO131
diff --git a/test/dlint b/test/dlint
deleted file mode 100755
index a639c0e2..00000000
--- a/test/dlint
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-python3 -m flake8 --select=DUO *.py modules/*.py