/VS2022-PythonApplication1

Visual Studio 2022 Python Application

Primary LanguageShell

VS2022-PythonApplication1

Visual Studio 2022 Python Application

Default template for working with Python from Visual Studio 2022 Community Edition

To add pre-commit git pre-commit hook on tests, add hook and change it to executable

touch .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
#!/bin/sh
set -e
cd "${0%/*}"
status=$?
../../bin/test.sh
status=$?
[ $status -eq 0 ] && echo "SUCCESS" || exit 1

image 1

image 2

image 3