mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
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:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user