This is an automated email from the ASF dual-hosted git repository. bossenti pushed a commit to branch exp/poetry in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit dad0a190bd48b8be2593f0a9ce25cd218a955a1b Author: bossenti <[email protected]> AuthorDate: Tue Aug 1 19:02:24 2023 +0200 chore: improve pre-commit config Signed-off-by: bossenti <[email protected]> --- streampipes-client-python/.pre-commit-config.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/streampipes-client-python/.pre-commit-config.yaml b/streampipes-client-python/.pre-commit-config.yaml index a9bfe3a6d..d8eb17bf7 100644 --- a/streampipes-client-python/.pre-commit-config.yaml +++ b/streampipes-client-python/.pre-commit-config.yaml @@ -29,11 +29,18 @@ repos: - repo: local hooks: + + - id: print_statement + name: Check that print is not in the source code + types: [ python ] + entry: 'print\(.*\)' + language: pygrep + - id: interrogate name: interrogate language: python types: [ python ] - entry: interrogate -vv --fail-under 100 --omit-covered-files --ignore-init-method --ignore-module --ignore-magic --ignore-regex test_* --ignore-regex Test* + entry: interrogate -vv --fail-under 100 --omit-covered-files --ignore-init-method --ignore-module --ignore-magic --ignore-regex test_* --ignore-regex Test* --ignore-regex conftest* - id: pyupgrade name: pyupgrade
