[lint] Ignore deleted files for Ruff linting (#3709)
## What changes were proposed in this pull request?
- We were ignoring the `E902` rule earlier because it was triggering for deleted files.
- Instead, this PR ignores the deleted files and not use them for lint checks to avoid further triggering such rules.
## How was this patch tested?
- Locally running lint checks.