mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
lint/pre-commit/ci: replace shfmt => beautysh
This commit is contained in:
@@ -9,7 +9,4 @@ pip install Pygments collective.checkdocs pre-commit
|
||||
python setup.py checkdocs
|
||||
|
||||
# stop the build if there are any formatting errors
|
||||
err=0
|
||||
pre-commit run --all-files black || err=1
|
||||
pre-commit run --all-files flake8 || err=1
|
||||
exit $err
|
||||
pre-commit run --all-files
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
|
||||
|
||||
# stop the build if there are any formatting errors
|
||||
shfmt -l -d -i 2 -ci -w .
|
||||
Reference in New Issue
Block a user