-
Notifications
You must be signed in to change notification settings - Fork 30
85 lines (65 loc) · 1.54 KB
/
Copy pathlinters.yml
File metadata and controls
85 lines (65 loc) · 1.54 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# SPDX-FileCopyrightText: AISEC Pentesting Team
#
# SPDX-License-Identifier: CC0-1.0
name: linters
on:
push:
branches:
- master
pull_request:
paths:
- 'pyproject.toml'
- 'uv.lock'
- '.github/**'
- 'src/**'
- 'tests/**'
jobs:
linters:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run reuse lint
run: |
uv run just lint-reuse
- name: Run ruff check
run: |
uv run just lint-ruff-check
- name: Run ruff format
run: |
uv run just lint-ruff-format
linters-win32:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run mypy
run: |
uv run just win32-lint-mypy
type-checks:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Run mypy
run: |
uv run just lint-mypy
- name: Run ty typechecker [experimental]
continue-on-error: true
run: |
uv run just lint-ty