-
-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (47 loc) · 1.1 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
name: linting
on: push
jobs:
licenses:
runs-on: ubuntu-latest
steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
- name: REUSE compliance check
uses: fsfe/reuse-action@v1
python:
runs-on: ubuntu-latest
steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
- name: Install tools
run: |
pip install mypy pyflakes pylint black
- name: Run mypy
run: |
mypy src/main.py
if: ${{ always() }}
- name: Run pyflakes
run: |
pyflakes src/*.py
if: ${{ always() }}
- name: Run pylint
run: |
pylint src/*.py
if: ${{ always() }}
- name: Run black
run: |
black --check --diff src/*.py src/clang/cindex.pyi
if: ${{ always() }}
codeql:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout rz-bindgen
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
- name: Run CodeQL
uses: github/codeql-action/analyze@v2