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
Update the pipelines and documentation to specify that `ruff check` and
`ruff format` should be (and will be in the pipelines) run on the
workspace
  • Loading branch information
Javagedes committed Oct 1, 2024
1 parent 78b103e commit a406849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CIRunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ jobs:
npm install -g [email protected]
npm install -g [email protected]
- 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()
Expand Down
1 change: 1 addition & 0 deletions docs/contributor/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ as described above.
``` cmd
ruff check .
ruff format --check .
```
* Note: Newer editors are very helpful in resolving source formatting errors. For example, in VSCode, you can
Expand Down

0 comments on commit a406849

Please sign in to comment.