-
-
Notifications
You must be signed in to change notification settings - Fork 57
40 lines (32 loc) · 873 Bytes
/
ruff.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
name: Linter and code style check
on: [ pull_request ]
permissions:
contents: read
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Run Cimon (eBPF).
uses: cycodelabs/cimon-action@v0
with:
client-id: ${{ secrets.CIMON_CLIENT_ID }}
secret: ${{ secrets.CIMON_SECRET }}
prevent: true
allowed-hosts: >
files.pythonhosted.org
pypi.org
- name: Checkout repository.
uses: actions/checkout@v4
- name: Setup Python.
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Run linter check.
uses: chartboost/ruff-action@v1
with:
version: 0.1.2
- name: Run code style check.
uses: chartboost/ruff-action@v1
with:
version: 0.1.2
args: format --check