From 769f5af17eccdc501c34799926814b404c106db6 Mon Sep 17 00:00:00 2001 From: kleph Date: Fri, 1 Dec 2023 18:36:10 +0100 Subject: [PATCH] [ci] add ruff linter --- .drone.yml | 6 ++++++ .ruff.toml | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .ruff.toml diff --git a/.drone.yml b/.drone.yml index 004f9d9..96da54c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,13 @@ kind: pipeline name: lint steps: +- name: python lint with ruff + image: pipelinecomponents/ruff + commands: + - ruff . + - name: python lint image: cytopia/pylint commands: - find . -type f -name "*.py" | xargs pylint + diff --git a/.ruff.toml b/.ruff.toml new file mode 100644 index 0000000..7c71fe6 --- /dev/null +++ b/.ruff.toml @@ -0,0 +1,2 @@ +[lint] +ignore = ["E741"]