Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bagxi committed Mar 10, 2020
1 parent e656429 commit 802ab2e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions bin/codestyle/check_codestyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ while getopts ":s" flag; do
esac
done

echo 'isort: `isort -rc --check-only --settings-path ./setup.cfg`'
echo 'isort -rc --check-only --settings-path ./setup.cfg'
isort -rc --check-only --settings-path ./setup.cfg

# stop the build if there are any unexpected flake8 issues
echo 'flake8: `bash ./bin/_flake8.sh`'
bash ./bin/_flake8.sh --count \
echo 'bash ./bin/codestyle/flake8.sh'
bash ./bin/codestyle/flake8.sh --count \
--config=./setup.cfg \
--show-source \
--statistics

# exit-zero treats all errors as warnings.
echo 'flake8 (warnings): `flake8 .`'
flake8 ./bin/_flake8.sh --count \
echo 'flake8'
flake8 ./bin/codestyle/flake8.sh --count \
--config=./setup.cfg \
--max-complexity=10 \
--show-source \
Expand All @@ -33,9 +33,9 @@ flake8 ./bin/_flake8.sh --count \

# test to make sure the code is yapf compliant
if [[ -f ${skip_inplace} ]]; then
echo 'yapf: `bash ./bin/_yapf.sh --all`'
bash ./bin/_yapf.sh --all
echo 'bash ./bin/codestyle/yapf.sh --all'
bash ./bin/codestyle/yapf.sh --all
else
echo 'yapf: `bash ./bin/_yapf.sh --all-in-place`'
bash ./bin/_yapf.sh --all-in-place
echo 'bash ./bin/codestyle/yapf.sh --all-in-place'
bash ./bin/codestyle/yapf.sh --all-in-place
fi
2 changes: 1 addition & 1 deletion teamcity/binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eo pipefail -v

pip install -r requirements/requirements.txt

bash ./bin/tests/_check_binary.sh
bash ./bin/tests/check_binary.sh
2 changes: 1 addition & 1 deletion teamcity/instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eo pipefail -v

pip install -r requirements/requirements.txt

bash ./bin/tests/_check_instance.sh
bash ./bin/tests/check_instance.sh
2 changes: 1 addition & 1 deletion teamcity/semantic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -eo pipefail -v

pip install -r requirements/requirements.txt

bash ./bin/tests/_check_semantic.sh
bash ./bin/tests/check_semantic.sh

0 comments on commit 802ab2e

Please sign in to comment.