-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 991 Bytes
/
ruff.yml
File metadata and controls
40 lines (33 loc) · 991 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
36
37
38
39
40
name: Ruff
on:
push:
branches:
- main
- 'stable/**'
pull_request:
branches: [main]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
files.pythonhosted.org:443
objects.githubusercontent.com:443
github.com:443
pypi.org:443
api.github.com:443
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# Keep in sync with .pre-commit-config.yaml
- run: python -Im pip install --user ruff==0.15.9
- name: Run ruff
working-directory: ./src
run: ruff check --output-format=github wagtail_tinytableblock