| #!/bin/sh | |||||
| # get the list of modified files | # get the list of modified files | ||||
| files=$(git diff --cached --name-only) | files=$(git diff --cached --name-only) | ||||
| ruff check --fix ./api | ruff check --fix ./api | ||||
| # run Ruff linter checks | # run Ruff linter checks | ||||
| ruff check --preview ./api || status=$? | |||||
| ruff check ./api || status=$? | |||||
| status=${status:-0} | status=${status:-0} | ||||