-
-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (42 loc) · 1.05 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
name: json2xml linters.yml
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.13"
cache: 'pip'
- run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: |
ruff check json2xml
ruff check tests
mypy:
name: mypy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.13'
cache: 'pip'
- run: pip install --upgrade mypy types-requests types-urllib3
- name: mypy
uses: liskin/gh-problem-matcher-wrap@v2
with:
linters: mypy
run: |
mypy json2xml