Add ruff configuration

Apply our standard set of rules from our cockpit projects, and fix some
minor fallout:
```
test/check-application:7:1: I001 [*] Import block is un-sorted or un-formatted
test/check-application:9:119: E501 Line too long (122 > 118 characters)
```

Run ruff in CI to ensure we don't break it.
This commit is contained in:
Martin Pitt 2023-09-22 10:12:40 +02:00 committed by Martin Pitt
parent 4f688bfbf8
commit ac77bafede
3 changed files with 48 additions and 2 deletions

View file

@ -12,3 +12,5 @@ export RUN_TESTS_OPTIONS=--track-naughties
export LINT=1
make check
ruff check test/check*