-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.19 KB
/
lint.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: lint
on:
push:
pull_request:
types: [ opened, synchronize ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@d0a0e814ec17e92d33be7d24dd922b479f1bcd38
with:
args: 'format --check'
- uses: astral-sh/ruff-action@d0a0e814ec17e92d33be7d24dd922b479f1bcd38
with:
args: 'check'
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.12' ]
name: check ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install pyright
run: |
npm install -g pyright
- name: Run pyright
run: |
pyright
- name: Verify No CLRF line endings.
run: >
! $(find . ! -path "./.git/*" -not -type d -exec file "{}" ";" |& grep -q " CRLF ")