lyft / clutch

Extensible platform for infrastructure management
https://clutch.sh
Apache License 2.0
1.67k stars 116 forks source link

housekeeping: Updating pre-commit to ignore deleted files #3026

Closed jdslaugh closed 3 months ago

jdslaugh commented 3 months ago

Description

Was noticed that when the pre-commit was run with a deleted file it would fail in the linting phase. Since it had been setup to fetch the names only it was unaware of which files were still present. Adding the filter option to filter out deleted files.

Before

Screenshot 2024-05-23 at 12 45 06 PM

After

Screenshot 2024-05-23 at 12 45 48 PM

Testing Performed

manual