blob: 5db2e833847413dfeff19a7485dbf4e8ebb2838e (
plain)
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
|
---
name: Darker-Ruff Lint
on:
pull_request:
branches:
- current
env:
base_ref: ${{ github.event.pull_request.base.ref }}
jobs:
darker-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-python@v5
- name: darker install
run: |
pip install git+https://github.com/akaihola/darker.git@master isort==5.11.4 ruff>=0.0.292
- name: Fetch base branch
run: |
git fetch origin ${base_ref}:${base_ref}
- name: Analyze Code
run: |
darker -r ${base_ref}... --check --diff --lint "ruff check" --isort --color ./src
|