Add some extra rules to ruff, also add a more complete ruff config that fails
Over time we can enable more rules for `ruff check`
This commit is contained in:
parent
5ab0a62964
commit
e4cfcc76a7
3 changed files with 83 additions and 2 deletions
|
|
@ -58,14 +58,24 @@ meta-build-image:
|
|||
- tags
|
||||
- web
|
||||
|
||||
# Python formatting and static analysis with ruff
|
||||
# Python static analysis with ruff
|
||||
ruff-lint:
|
||||
stage: analysis
|
||||
extends: .python
|
||||
script:
|
||||
- ruff check
|
||||
|
||||
# Python formatting and static analysis with ruff
|
||||
# Increased checking of the code with ruff this is allowed to fail
|
||||
# while we improve the code quality. Rules from this are
|
||||
# slowly moved into the main check
|
||||
ruff-lint-increased:
|
||||
stage: analysis
|
||||
extends: .python
|
||||
allow_failure: true
|
||||
script:
|
||||
- ruff --config ruff-increased-checking.toml check
|
||||
|
||||
# Python formatting with ruff
|
||||
ruff-format:
|
||||
stage: analysis
|
||||
extends: .python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue