Skip to content

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

flake8: Enable plugins: blind-except, builtins, import-order, self, sfs, simplify (#1303)

bcolesd64962582303
diff --git a/setup.cfg b/setup.cfg
index f9a399f6..4430e944 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,12 +1,22 @@
[flake8]
flake8-max-line-length = 120
+max-line-length = 120
max-complexity = 80
-select = C,E,F,W,B,DUO,D,R
-ignore = E501 W503 B006 DUO130 E800
+select = C,E,F,W,I,B,DUO,D,R,A,S,SLF,Q0,SIM,SFS
+ignore = E501 W503 B006 DUO130 E800 B9 SFS301 Q0 S SIM
per-file-ignores =
- spiderfoot/__init__.py:F401
+ spiderfoot/event.py:A,D
+ spiderfoot/db.py:A,D,SFS101
+ sf.py:I,D,SFS101,SFS201
+ sflib.py:I,D,SFS101
+ sfwebui.py:A,I,D,SFS101
+ sfscan.py:I,D
+ modules/*:R,A,I,D,SFS101,SFS201
+ spiderfoot/*:I,D
+ spiderfoot/__init__.py:I,D,F401
sfcli.py:D
- modules/*:R
+ test/*:I,D
+ docs/conf.py:A,D
[darglint]
docstring_style=google
diff --git a/test/requirements.txt b/test/requirements.txt
index 4d092409..f6b5ba8d 100644
--- a/test/requirements.txt
+++ b/test/requirements.txt
@@ -2,8 +2,15 @@
darglint==1.5.4
dlint==0.10.3
flake8==3.9.2
+flake8-blind-except==0.2.0
flake8-bugbear==21.4.3
+flake8-builtins==1.5.3
+flake8-import-order==0.18.1
+flake8-quotes==3.3.0
flake8-return==1.1.2
+flake8-self==0.2.2
+flake8-sfs==0.0.3
+flake8-simplify==0.14.1
pytest==6.2.4
pytest-cov==2.10.1
pytest-flake8==1.0.6