mirror of
https://github.com/imputnet/helium.git
synced 2026-10-19 01:39:56 -05:00
devutils: Add check_all_code.sh and reduce code check verbosity
This commit is contained in:
6 files changed
+27
-5
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Wrapper for devutils and utils formatter, linter, and tester
|
||||
|
||||
set -eu
|
||||
|
||||
_root_dir=$(dirname $(dirname $(readlink -f $0)))
|
||||
cd ${_root_dir}/devutils
|
||||
|
||||
printf '###### utils yapf ######\n'
|
||||
./run_utils_yapf.sh
|
||||
printf '###### utils pylint ######\n'
|
||||
./run_utils_pylint.py || ./run_utils_pylint.py --hide-fixme
|
||||
printf '###### utils tests ######\n'
|
||||
./run_utils_tests.sh
|
||||
|
||||
printf '### devutils yapf ######\n'
|
||||
./run_devutils_yapf.sh
|
||||
printf '###### devutils pylint ######\n'
|
||||
./run_devutils_pylint.py || ./run_devutils_pylint.py --hide-fixme
|
||||
printf '###### devutils tests ######\n'
|
||||
./run_devutils_tests.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
_root_dir=$(dirname $(dirname $(readlink -f $0)))
|
||||
cd ${_root_dir}/devutils
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
_current_dir=$(dirname $(readlink -f $0))
|
||||
_root_dir=$(dirname $_current_dir)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
python3 -m yapf --style "$(dirname $(readlink -f $0))/.style.yapf" -rpi $@
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
_root_dir=$(dirname $(dirname $(readlink -f $0)))
|
||||
cd ${_root_dir}/utils
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
set -eu
|
||||
|
||||
_root_dir=$(dirname $(dirname $(readlink -f $0)))
|
||||
python3 -m yapf --style "$_root_dir/.style.yapf" -e '*/third_party/*' -rpi "$_root_dir/utils"
|
||||
Reference in new issue
Block a user