Skip to content

Commit 265d671

Browse files
authored
Merge pull request #102 from RegioHelden/100-linting-job
Introduce centralized linting job
2 parents 415f0ae + be800db commit 265d671

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

config_defaults.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
dependencies: [""]
1010
max_line_length: 120
1111
changelog_since_tag: ""
12+
# see https://github.com/astral-sh/ruff/releases
13+
# renovate: datasource=github-releases depName=astral-sh/ruff
14+
ruff_version: "0.14.6"
1215

1316
.devcontainer/devcontainer.json:
1417
run_services: ["app"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint
2+
3+
on:
4+
# code pushed to pull request branch
5+
push:
6+
branches-ignore:
7+
- main
8+
# when draft state is removed (needed as automatically created PRs are not triggering this action)
9+
pull_request:
10+
types: [ready_for_review]
11+
12+
jobs:
13+
# lint code for errors
14+
# see https://github.com/RegioHelden/github-reusable-workflows/blob/main/.github/workflows/python-ruff.yaml
15+
lint:
16+
name: Lint
17+
permissions:
18+
contents: read
19+
uses: RegioHelden/github-reusable-workflows/.github/workflows/[email protected]
20+
with:
21+
ruff-version: "<%= @configs['ruff_version'] -%>"

0 commit comments

Comments
 (0)