-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (45 loc) · 1.39 KB
/
python-lint.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Python Code Quality and Lint
on:
push:
branches: [ master ]
paths:
- 'wikibaseintegrator/**.py'
- 'test/**.py'
pull_request:
branches: [ '**' ]
paths:
- 'wikibaseintegrator/**.py'
- 'test/**.py'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.13
uses: actions/[email protected]
with:
python-version: '3.13'
cache: 'poetry'
# Need to install poetry again in the new python version
- name: Install poetry
run: python -m pip install poetry
- name: Install dependencies
run: |
python -m poetry install --with dev
- name: isort imports check
run: |
python -m poetry run isort --check --diff wikibaseintegrator test
- name: mypy typing check
run: |
python -m poetry run mypy --install-types --non-interactive
- name: pylint code linting
run: |
python -m poetry run pylint wikibaseintegrator test || python -m poetry run pylint-exit $?
- name: codespell spell checking
run: |
python -m poetry run codespell wikibaseintegrator test
- name: flynt string formatter converting
run: |
python -m poetry run flynt -f wikibaseintegrator test