From 1e2f9e73ef20031abea2f71645228fc1b48db28a Mon Sep 17 00:00:00 2001 From: ayushthe1 Date: Sun, 17 Dec 2023 12:08:09 +0530 Subject: [PATCH 1/2] add interrogate --- .github/workflows/linting.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 0c83e47754..fb62de91e3 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy'] + tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy','interrogate'] steps: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6463574409..a4d0d4580b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,4 +77,4 @@ repos: - id: interrogate verbose: True exclude: ^(locales|presentation) - args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"] \ No newline at end of file + args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0", "-e", "fuzz/", "-e", "test/", "-e", "cve_bin_tool/checkers/", "-e", "build/"] \ No newline at end of file From fcd1032c8f833d04eafb9708bedb0dc7de2aa9af Mon Sep 17 00:00:00 2001 From: ayushthe1 Date: Fri, 22 Dec 2023 01:23:57 +0530 Subject: [PATCH 2/2] add pass_filename to the hook --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4d0d4580b..930e6170d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -77,4 +77,5 @@ repos: - id: interrogate verbose: True exclude: ^(locales|presentation) - args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0", "-e", "fuzz/", "-e", "test/", "-e", "cve_bin_tool/checkers/", "-e", "build/"] \ No newline at end of file + args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0", "-e", "fuzz/", "-e", "test/", "-e", "cve_bin_tool/checkers/", "-e", "build/"] + pass_filenames: false \ No newline at end of file