From 9b6d8f931c44c34cfd0431d44e27723ac4745e63 Mon Sep 17 00:00:00 2001 From: ModischFabrications Date: Sat, 25 Apr 2020 00:29:41 +0200 Subject: [PATCH] try python, don't use unsupported hacks (see https://github.com/pre-commit/pre-commit/issues/1412, sorry asottile) --- .pre-commit-config.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a3943a..e4a27df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,8 +59,9 @@ repos: description: tag git version if it's outdated pass_filenames: false verbose: true - entry: python tag_from_version.py - language: system + entry: tag_from_version.py + language: python + additional_dependencies: [gitpython] # git version check only needed if version could have changed files: main.py types: [python] @@ -73,6 +74,7 @@ repos: # don't run for every file, always full execution (with default filters to skip untestable files) pass_filenames: false entry: python -m pytest -sv - language: system + language: python + additional_dependencies: [pytest] types: [python] stages: [push]