From 0eb65c07d52f71cf555f0c32dc34b2e4ac8cf2a2 Mon Sep 17 00:00:00 2001 From: "Wei Sun (Jack)" Date: Sat, 23 Aug 2025 00:37:56 -0700 Subject: [PATCH] chore: Ignore hidden files in autoformat.sh PiperOrigin-RevId: 798490378 --- autoformat.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoformat.sh b/autoformat.sh index 2e439a87..d1c832b8 100755 --- a/autoformat.sh +++ b/autoformat.sh @@ -52,16 +52,16 @@ echo '---------------------------------------' echo '| Auto-formatting src/...' echo '---------------------------------------' -find -L src/ -type f -name "*.py" -exec pyink --config pyproject.toml {} + +find -L src/ -not -path "*/.*" -type f -name "*.py" -exec pyink --config pyproject.toml {} + echo '---------------------------------------' echo '| Auto-formatting tests/...' echo '---------------------------------------' -find -L tests/ -type f -name "*.py" -exec pyink --config pyproject.toml {} + +find -L tests/ -not -path "*/.*" -type f -name "*.py" -exec pyink --config pyproject.toml {} + echo '---------------------------------------' echo '| Auto-formatting contributing/...' echo '---------------------------------------' -find -L contributing/ -type f -name "*.py" -exec pyink --config pyproject.toml {} + +find -L contributing/ -not -path "*/.*" -type f -name "*.py" -exec pyink --config pyproject.toml {} +