mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(pre-commit): add file filter to python linters (#2818)
This commit is contained in:
@@ -75,6 +75,7 @@ repos:
|
|||||||
name: pylint
|
name: pylint
|
||||||
entry: bash -c 'pylint --disable=W,C,R,E -j 0 -rn -sn prowler/'
|
entry: bash -c 'pylint --disable=W,C,R,E -j 0 -rn -sn prowler/'
|
||||||
language: system
|
language: system
|
||||||
|
files: '.*\.py'
|
||||||
|
|
||||||
- id: trufflehog
|
- id: trufflehog
|
||||||
name: TruffleHog
|
name: TruffleHog
|
||||||
@@ -89,12 +90,14 @@ repos:
|
|||||||
name: pytest-check
|
name: pytest-check
|
||||||
entry: bash -c 'pytest tests -n auto'
|
entry: bash -c 'pytest tests -n auto'
|
||||||
language: system
|
language: system
|
||||||
|
files: '.*\.py'
|
||||||
|
|
||||||
- id: bandit
|
- id: bandit
|
||||||
name: bandit
|
name: bandit
|
||||||
description: "Bandit is a tool for finding common security issues in Python code"
|
description: "Bandit is a tool for finding common security issues in Python code"
|
||||||
entry: bash -c 'bandit -q -lll -x '*_test.py,./contrib/' -r .'
|
entry: bash -c 'bandit -q -lll -x '*_test.py,./contrib/' -r .'
|
||||||
language: system
|
language: system
|
||||||
|
files: '.*\.py'
|
||||||
|
|
||||||
- id: safety
|
- id: safety
|
||||||
name: safety
|
name: safety
|
||||||
@@ -107,3 +110,4 @@ repos:
|
|||||||
description: "Vulture finds unused code in Python programs."
|
description: "Vulture finds unused code in Python programs."
|
||||||
entry: bash -c 'vulture --exclude "contrib" --min-confidence 100 .'
|
entry: bash -c 'vulture --exclude "contrib" --min-confidence 100 .'
|
||||||
language: system
|
language: system
|
||||||
|
files: '.*\.py'
|
||||||
|
|||||||
Reference in New Issue
Block a user