-
-
Notifications
You must be signed in to change notification settings - Fork 393
35 lines (32 loc) · 967 Bytes
/
Copy pathlint.yml
File metadata and controls
35 lines (32 loc) · 967 Bytes
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
name: Lint
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
activate-environment: true
enable-cache: "true"
cache-dependency-glob: |
pyproject.toml
uv.lock
- run: uv sync
- uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2
with:
cache: true
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
if: always()
with:
msg: 'style: apply pre-commit auto-fixes'