Skip to content

Commit

Permalink
ci: improve interrogate/pre-commit config
Browse files Browse the repository at this point in the history
Signed-off-by: Terri Oda <[email protected]>
  • Loading branch information
terriko committed Jan 9, 2024
1 parent 6d4df4a commit cc17aef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ jobs:
linting:
name: Linting
runs-on: ubuntu-22.04
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to create a PR
strategy:
fail-fast: false
matrix:
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy','interrogate']
tool: ['isort', 'black', 'pyupgrade', 'flake8', 'bandit', 'gitlint', 'mypy', 'interrogate']
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand Down Expand Up @@ -46,5 +44,4 @@ jobs:
run: |
python -m pip install --upgrade gitlint
echo "$TITLE" | gitlint
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d

7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ repos:
hooks:
- 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/"]
pass_filenames: false
exclude: ^(locales|presentation|fuzz|test|cve_bin_tool/checkers|build)
args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"]
pass_filenames: false

0 comments on commit cc17aef

Please sign in to comment.