From 156378981852532fc9cabb8b90e5bc829eec08ce Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Sat, 3 Dec 2022 10:55:33 +0000 Subject: [PATCH] chore(style): skip generated stub files for format checking GitOrigin-RevId: 1bd03bca4531a3132c2dab2677a53fbcf4b0605f --- imperative/python/scripts/format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imperative/python/scripts/format.sh b/imperative/python/scripts/format.sh index 827b96c3d..582cc74a0 100755 --- a/imperative/python/scripts/format.sh +++ b/imperative/python/scripts/format.sh @@ -31,4 +31,4 @@ fi # do not isort megengine/__init__.py file, caused we must # init library load path before load dependent lib in core isort $ISORT_ARG -j $(nproc) -rc "${directories[@]}" -s megengine/__init__.py -black $BLACK_ARG --target-version=py35 -- "${directories[@]}" +black $BLACK_ARG --target-version=py35 --exclude='_imperative_rt/.*\.pyi$' -- "${directories[@]}" -- GitLab