Skip to content

Commit

Permalink
Run ruff check and ruff format on the workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Oct 1, 2024
1 parent 86cf788 commit 9f995c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/CIRunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ jobs:
npm install -g markdownlint-cli@0.39.0
npm install -g cspell@5.20.0
- name: Run ruff
- name: Run ruff linter
if: success() || failure()
run: ruff check ${{ inputs.package-src }} --output-format=github

run: ruff check --output-format=github .

- name: Run ruff formatter
if: success() || failure()
run: ruff format --check .

- name: Run markdownlint
if: success() || failure()
run: markdownlint "**/*.md"
Expand Down
8 changes: 6 additions & 2 deletions azure-pipelines/templates/ruff-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ parameters:
root_package_folder: ''

steps:
- script: ruff check ${{parameters.root_package_folder}}
displayName: 'Run ruff'
- script: ruff check --output-format=azure .
displayName: 'Run ruff linter'
condition: succeededOrFailed()

- script: ruff format --check .
displayName: 'Run ruff formatter'
condition: succeededOrFailed()

# Only capture and archive the lint log on failures.
Expand Down

0 comments on commit 9f995c3

Please sign in to comment.