-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (43 loc) · 1.2 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: Linting Workflow
on:
push:
branches:
- "*"
jobs:
python_lint:
name: Python linting and formatting checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install linting libraries
run: |
set -e
cd clients/python
python3 -m pip install .[lint]
- name: Check Python files using Ruff
run: |
set -e
ruff check --output-format github --config clients/python/pyproject.toml .
ruff format --diff --config clients/python/pyproject.toml .
prettier_lint:
name: Prettier Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "16" # Specify the Node.js version you want to use
- name: Check files using Prettier
run: |
npm install -g [email protected]
prettier --check .