-
Notifications
You must be signed in to change notification settings - Fork 66
45 lines (40 loc) · 1.06 KB
/
code_quality.yml
File metadata and controls
45 lines (40 loc) · 1.06 KB
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
35
36
37
38
39
40
41
42
43
44
45
name: Code Quality Checks
on:
workflow_dispatch:
inputs:
git_ref:
type: string
description: Git ref of the DuckDB python package
required: false
workflow_call:
inputs:
git_ref:
type: string
description: Git ref of the DuckDB python package
required: false
defaults:
run:
shell: bash
jobs:
run_checks:
name: Run linting, formatting and static type checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
fetch-depth: 0
persist-credentials: false
- name: Install Astral UV
uses: astral-sh/setup-uv@v7
with:
version: "0.9.0"
python-version: 3.9
- name: pre-commit (cache)
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit (--all-files)
run: |
uvx pre-commit run --show-diff-on-failure --color=always --all-files