Skip to content

Commit

Permalink
ruff again?
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Jan 10, 2025
1 parent 28b66ba commit 0a3c9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/tools/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def requires_tool_type(scan_type):

# iterate through the modules in the current package
package_dir = str(Path(__file__).resolve().parent)
for module_name in os.listdir(package_dir):
for module_name in os.listdir(package_dir): # noqa: PTH208
# check if it's dir
if Path(os.path.join(package_dir, module_name)).is_dir(): # noqa: PTH208
if Path(os.path.join(package_dir, module_name)).is_dir():
try:
# check if it's a Python module
if find_spec(f"dojo.tools.{module_name}.parser"):
Expand Down

0 comments on commit 0a3c9c0

Please sign in to comment.