mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-06 17:28:30 +00:00
Fix linting issues with flake8 and black. Add pre-commit congifuration, update documnetation for it. Apply linting check in Travis CI.
8 lines
295 B
Python
8 lines
295 B
Python
from os.path import dirname, basename, isfile
|
|
import glob
|
|
|
|
# dynamically importing all modules in folder
|
|
files = glob.glob(dirname(__file__) + "/*.py")
|
|
for module_name in (basename(f)[:-3] for f in files if isfile(f) and not f.endswith("__init__.py")):
|
|
exec(f"from .{module_name} import *")
|