fix: skip port deletion when instances have no port (#779)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b65b5fb..bb25beb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,6 +6,7 @@
     hooks:
       - id: end-of-file-fixer
       - id: trailing-whitespace
+        exclude: ^images/.*/patches/.*\.patch$
 
   - repo: https://github.com/compilerla/conventional-pre-commit
     rev: v2.0.0