Skip to content

Commit 991aaf6

Browse files
committed
rebase
1 parent 32c369f commit 991aaf6

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tools/dev/code_style.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
set -e # Exit immediately if any command fails
1919

2020
REPO_ROOT="${MAXTEXT_REPO_ROOT:-$PWD}"
21-
FOLDERS_TO_FORMAT='/usr/local/google/home/lidanny/Desktop/Project/maxtext1013/new_maxtext/maxtext/benchmarks/maxtext_xpk_runner.py'
21+
FOLDERS_TO_FORMAT=("${MAXTEXT_PKG_DIR:-${REPO_ROOT}/src/MaxText}" "${REPO_ROOT}/pedagogical_examples")
2222
LINE_LENGTH=$(grep -E "^max-line-length=" pylintrc | cut -d '=' -f 2)
2323

2424
# Check for --check flag
@@ -32,10 +32,10 @@ do
3232
pyink "$folder" ${CHECK_ONLY_PYINK_FLAGS} --pyink-indentation=2 --line-length=${LINE_LENGTH}
3333
done
3434

35-
# for folder in "${FOLDERS_TO_FORMAT[@]}"
36-
# do
37-
# # pylint doesn't change files, only reports errors.
38-
# pylint --disable C0114,R0401,R0917,W0201,W0613 "./$folder"
39-
# done
35+
for folder in "${FOLDERS_TO_FORMAT[@]}"
36+
do
37+
# pylint doesn't change files, only reports errors.
38+
pylint --disable C0114,R0401,R0917,W0201,W0613 "./$folder"
39+
done
4040

41-
echo "Successfully clean up all codes."
41+
echo "Successfully clean up all codes."

0 commit comments

Comments
 (0)