Skip to content

Commit

Permalink
Restore auto fixed deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Jan 10, 2025
1 parent af390bb commit 28b66ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/tools/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def requires_tool_type(scan_type):
package_dir = str(Path(__file__).resolve().parent)
for module_name in os.listdir(package_dir):

Check failure on line 118 in dojo/tools/factory.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (PTH208)

dojo/tools/factory.py:118:20: PTH208 Use `pathlib.Path.iterdir()` instead.
# check if it's dir
if Path(os.path.join(package_dir, module_name)).is_dir():
if Path(os.path.join(package_dir, module_name)).is_dir(): # noqa: PTH208

Check failure on line 120 in dojo/tools/factory.py

View workflow job for this annotation

GitHub Actions / ruff-linting

Ruff (RUF100)

dojo/tools/factory.py:120:64: RUF100 Unused `noqa` directive (unused: `PTH208`)
try:
# check if it's a Python module
if find_spec(f"dojo.tools.{module_name}.parser"):
Expand Down

0 comments on commit 28b66ba

Please sign in to comment.