From f9cdfcfe559cc05fcf5d06c562fab2e85d3d12e1 Mon Sep 17 00:00:00 2001 From: Tristan Leonard Date: Tue, 12 Dec 2023 15:01:02 -0800 Subject: [PATCH] fixed that horrible linting bug --- .pre-commit-config.yaml | 47 +++++++++++++++++++++++++++++++++++++++- secureli/actions/scan.py | 5 +---- 2 files changed, 47 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e6a92c4..9131ad04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1,46 @@ -repos: [] +repos: +- hooks: + - id: python-use-type-annotations + repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 +- hooks: + - args: + - --exclude + - tests/ + - --severity-level + - medium + id: bandit + repo: https://github.com/PyCQA/bandit + rev: 1.7.6 +- hooks: + - id: black + repo: https://github.com/psf/black + rev: 23.12.0 +- hooks: + - id: check-added-large-files + - id: check-ast + - id: check-docstring-first + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: check-merge-conflict + - id: check-toml + - id: check-json + - id: check-xml + - id: check-yaml + - id: debug-statements + - args: + - --allow-missing-credentials + id: detect-aws-credentials + - id: detect-private-key + - args: + - --pytest-test-first + id: name-tests-test + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 +- hooks: + - id: detect-secrets + repo: https://github.com/Yelp/detect-secrets + rev: v1.4.0 diff --git a/secureli/actions/scan.py b/secureli/actions/scan.py index 47be76a5..90d46923 100644 --- a/secureli/actions/scan.py +++ b/secureli/actions/scan.py @@ -56,10 +56,7 @@ def scan_repo( if verify_result.outcome in self.halting_outcomes: return - scan_result = self.scanner.scan_repo( - folder_path, - scan_mode, - specific_test) + scan_result = self.scanner.scan_repo(folder_path, scan_mode, specific_test) details = scan_result.output or "Unknown output during scan" self.echo.print(details)