Diagnosing linting issues

Hi, I am working on a new branch in my fork and my lint jobs are showing errors Sign in · GitLab

I tried the Flake8 and Markdownlint extensions in VS Code, clearing up the linting errors they come up with but I am still getting a failure in the GitLab job

trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook
Fixing docs/macos-instructions.md
ruff.....................................................................

Is there a way that I can do the same validation from the command line to determine where the issue really is?

Sorry if this is a bit of a noob question

Apologies, I have just seen that the diffs are actually displayed further down in the job info, with lines preceded by - and + signs.

Self answered and closed