-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 900 Bytes
/
ci.yaml
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
name: lint
on: [push, pull_request]
jobs:
ci:
name: Run black and pylint tools
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install Python dependencies
run: pip install black flake8
- name: Run linters
uses: wearerequired/lint-action@v2
with:
auto_fix: false
black: true
flake8: false
- name: Python type hinting and annotations checks with Mypy
run: |
uv run mypy *.py
- name: Python code analysis with Pylint
run: |
uv run pylint --output-format=text ./**/*.py