forked from microsoft/Qcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 849 Bytes
/
darker.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Lint with Darker
on:
push:
branches:
- 'main'
- 'release/*'
pull_request:
merge_group:
branches: ['main']
permissions:
contents: read
jobs:
lint-with-darker:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
fetch-depth: 0
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: "3.11"
- uses: akaihola/darker@0fcbba37081b4801113c2b017ee5134ecc8b3cd0 # 2.1.1
with:
options: "--check --diff"
src: "./src/qcodes"
revision: "origin/main..."