don't write ruff output to file (#121)

* don't write ruff output to file

* Update ruff instructions in python README

---------

Co-authored-by: ok300 <106775972+ok300@users.noreply.github.com>
This commit is contained in:
Ruben
2024-01-12 15:51:07 +01:00
committed by GitHub
parent 686b57aff4
commit 464a29816d
2 changed files with 5 additions and 3 deletions

View File

@@ -263,7 +263,7 @@ jobs:
- name: Check python formatting - name: Check python formatting
working-directory: snippets/python/src working-directory: snippets/python/src
run: ruff --ignore F841 --ignore F401 --output-format=github . run: ruff check --ignore F841 --ignore F401 --add-noqa .
- name: Check python syntax - name: Check python syntax
working-directory: snippets/python working-directory: snippets/python

View File

@@ -14,13 +14,15 @@ cd snippets/python
python3 -m compileall src python3 -m compileall src
``` ```
To check the snippet formatting: To check the snippet against formatting and linter rules:
```bash ```bash
cd snippets/python/src cd snippets/python/src
ruff --ignore F841 --ignore F401 --output-format=github . ruff check --ignore F841 --ignore F401 --add-noqa .
``` ```
and fix all occurrences of the `# noqa` directive.
To execute the snippets locally, in order to check for type correctness: To execute the snippets locally, in order to check for type correctness:
```bash ```bash