HUB
Sign inSign up
drone-ruff logo

adamlui/drone-ruff

By adamlui

•Updated about 23 hours ago

https://codeberg.org/adamlui/drone-ruff

Image
Security
Languages & frameworks
Developer tools
0

214

adamlui/drone-ruff repository overview

⁠ drone-ruff

[Latest Build] [SonarQube Security Rating] [License: MIT] [Supports Drone / Harness / Woodpecker]⁠

Drone⁠ / Harness⁠ / Woodpecker⁠ plugin to run Ruff⁠ on your Python code.

⁠ Quick start

⁠Drone CI

.drone.yml

kind: pipeline
name: default

trigger:
  event: [pull_request, push]
  paths: ['**/*.{py,pyi}', '{pyproject,.ruff,ruff}.toml']

steps:
  - name: ruff
    image: adamlui/drone-ruff:v1.0.1
⁠Woodpecker CI

.woodpecker/ruff.yml

when:
  - event: manual
  - event: [pull_request, push]
    path: { include: ['**/*.{py,pyi}', '{pyproject,.ruff,ruff}.toml'] }

steps:
  - name: ruff
    image: adamlui/drone-ruff:v1.0.1
⁠Harness CI

.harness/ruff.yaml

pipeline:
  stages:
    - identifier: default
      name: default
      steps:
        - identifier: ruff
          name: ruff
          spec:
            connectorRef: account.harnessImage
            image: adamlui/drone-ruff:v1.0.1
            type: Plugin

⁠ Settings (10)

Note

YAML settings override matching Ruff config file settings.
⁠Lint example
  - name: ruff
    image: adamlui/drone-ruff:v1.0.1
    settings:
      src: ./src
⁠Format example
  - name: ruff-format
    image: adamlui/drone-ruff:v1.0.1
    settings:
      src: ./src
      format: true
Ruff (5)
SettingDescriptionDefault
lintRun ruff check (linting).true
formatRun ruff format (code formatting).false
argsAdditional raw args passed verbatim to the Ruff CLI.none
srcWhitespace-separated list of files, directories, or glob patterns to lint/format..
working_directoryDirectory to run Ruff from (alias root_dir).repo root
Findings (3)
SettingDescriptionDefault
output_format1Lint findings output format⁠ (e.g. concise⁠, full⁠, gitlab⁠, json⁠).full⁠
colorColorize findings.true
quiet1Report errors only (suppress warnings and summary).false

1 Unreleased — to be introduced in v1.1.0.

Plugin (2)
SettingDescriptionDefault
debugEnable shell tracing (set -x) of the plugin entrypoint.false
never_failExit 0 regardless of lint errors (so CI step always passes).false

⁠ Shield embed

[Linted by drone-ruff]

⁠HTML
<a target="_blank" href="https://codeberg.org/adamlui/drone-ruff/#readme">
    <img height=32 alt="[Linted by drone-ruff]" src="https://img.shields.io/badge/Linted_by-drone--ruff-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge"></a>
⁠Markdown
[![[Linted by drone-ruff]](https://img.shields.io/badge/Linted_by-drone--ruff-black?logo=drone&logoColor=white&labelColor=464646&style=for-the-badge)](https://codeberg.org/adamlui/drone-ruff/#readme)

⁠ Contributing

All contributions welcome! See docs/CONTRIBUTING.md⁠ to get started.
  1. Fork⁠ the repo > create a branch from main.
  2. Make your change (one contribution per branch).
  3. Open a pull request > describe what you changed and why.
⁠ Dev setup

You'll need Docker⁠ and (for local pipeline testing) the Drone CLI⁠.

git clone https://codeberg.org/adamlui/drone-ruff.git
cd drone-ruff

The plugin is built from the Dockerfile⁠ and runs via src/entrypoint.sh + src/utils/*.sh. If you change any of these, rebuild the image:

docker build -t adamlui/drone-ruff:dev .
⁠ Test your change

Run the example pipeline locally:

drone exec --pipeline default

No Drone CLI? Test the image directly:

docker run --rm -v "$PWD:/app" -w /app adamlui/drone-ruff:dev

⁠ Financial contributions

If you find this project useful, you can support its development:

[PayPal] [Ko-fi]


⁠ License

Copyright © 2026 Adam Lui⁠ under the MIT license⁠.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE


drone-eslint⁠ — Drone / Harness / Woodpecker plugin to run ESLint on your repo.

drone-oxlint⁠ — Drone / Harness / Woodpecker plugin to run Oxlint (auto-installs ESLint plugins!)



Tag summary

Content type

Image

Digest

sha256:355e6a3bb…

Size

39.2 MB

Last updated

about 23 hours ago

docker pull adamlui/drone-ruff