[ci] add ruff linter

This commit is contained in:
kleph 2023-12-01 18:36:10 +01:00
parent a2449062b2
commit 769f5af17e
2 changed files with 8 additions and 0 deletions

View file

@ -3,7 +3,13 @@ kind: pipeline
name: lint name: lint
steps: steps:
- name: python lint with ruff
image: pipelinecomponents/ruff
commands:
- ruff .
- name: python lint - name: python lint
image: cytopia/pylint image: cytopia/pylint
commands: commands:
- find . -type f -name "*.py" | xargs pylint - find . -type f -name "*.py" | xargs pylint

2
.ruff.toml Normal file
View file

@ -0,0 +1,2 @@
[lint]
ignore = ["E741"]