Skip to content

Commit bd978eb

Browse files
authored
Merge pull request #797 from mavlink/pr-update-readme
README: document ruff checks
2 parents 5717d9e + 685a23e commit bd978eb

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
tags: true
2222
fetch-depth: 0
2323

24-
- name: Install pip
24+
- name: Install pip and pipx
2525
run: sudo apt-get install -y python3-pip pipx
2626

2727
- name: Check style

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ pip3 install -r requirements-docs.txt
129129
make -C mavsdk html
130130
```
131131

132+
### Formatting checks before committing
133+
134+
We use the following checks in [CI](.github/workflows/main.yml):
135+
136+
```
137+
pipx run ruff format --check --line-length=100 examples
138+
pipx run ruff check --select=ASYNC,RUF006,E,F --line-length=100 examples
139+
pipx run codespell .
140+
```
132141

133142
### Release steps
134143

0 commit comments

Comments
 (0)