Skip to main content

Ruff

Install RUFF:

pip install ruff

Linting using Ruff

Checks file for lint:

ruff check <file path> 

Apply linting to the file completely

ruff check <file path> --fix

Apply linting to Imports only

ruff check --select I <file path> --fix

Modify/Format the file to PEP standards

ruff format <file path>