-
Notifications
You must be signed in to change notification settings - Fork 356
32 lines (30 loc) · 1000 Bytes
/
pre-commit.yml
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
---
name: pre-commit
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
- master
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
# these checks currently require a ridiculous number of dependencies :)
# consider repackaging them in a container in the future
SKIP: "web-js-lint-check,web-css-lint-check,web-misc-lint-check,black,golangci-lint"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1 # full repo for tag comparisons, etc
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
# this action is not getting new features, but isn't deprecated yet
# switch to just running pre-commit locally when/if that happens that's
# why this one specifies a full version; presumably there will be a
# version bump when things change. :shrug:
- uses: pre-commit/[email protected]
# with:
# extra_args: ""