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 {} +