Skip to content
Myr

If `scripts/check` fails then prompt and autofix. (#952)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* If scripts/check fails then prompt and autofix * Update scripts/test Co-authored-by: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com> * Update test

authored by Tom Christie · committed by GitHub · parent 790a3ea · Browse files · 1 file+13 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Yeray Diaz Diaz <yeraydiazdiaz@gmail.com>

Diff stats

1 file+13 added−3 removed

  • other:+13 added−3 removed

1 file+13 added−3 removed

modified:scripts/test+13 added-3 removed
1#!/bin/sh -e1#!/bin/sh23export PREFIX=""4if [ -d 'venv' ] ; then5 export PREFIX="venv/bin/"6fi78set -x98if [ -z $GITHUB_ACTIONS ]; then9 set +e10 scripts/check11 while [ $? -ne 0 ]; do12 read -p "Running 'scripts/check' failed. Do you want to run 'scripts/lint' now? [y/N] " yn13 case $yn in14 [Yy]* ) :;;15 * ) exit;;16 esac17 scripts/lint18 scripts/check19 done20fi2122set -ex2324${PREFIX}pytest $@