added ruff bugbear and simplify rules and reformatted code accordingly
Passed
Simon Bjurek
created pipeline for commit
f15c875b
, finished
For add-ruff-settings
3 minutes 47 seconds, queued for 10 seconds