[ci] add ruff linter
This commit is contained in:
parent
a2449062b2
commit
769f5af17e
2 changed files with 8 additions and 0 deletions
|
@ -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
2
.ruff.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[lint]
|
||||||
|
ignore = ["E741"]
|
Loading…
Reference in a new issue