-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
93 lines (74 loc) · 1.63 KB
/
.gitlab-ci.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
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
86
87
88
89
90
91
92
93
image: python:3.11
before_script:
- apt-get update -qq && apt-get install -y -qq python3-pip shellcheck
- which python3
- python3 --version
# --no-deps is needed to avoid errors like:
# https://github.com/pypa/pip/issues/9644#issuecomment-788108944
- python3 -m pip install --no-deps -r req/base.txt -r req/dev.txt
pylint:
script: pylint -j 8 --recursive=y .
ruff:
script: ruff check .
yapf:
script: yapf -d -r -p .
isort:
script: isort --check --diff .
pytype_py38:
image: python:3.8
script:
- python3 -m pip install pytype
- pytype i3wsgroups
pytype_py39:
image: python:3.9
script:
- python3 -m pip install pytype
- pytype i3wsgroups
pytype_py310:
image: python:3.10
script:
- python3 -m pip install pytype
- pytype i3wsgroups
pytype_py311:
image: python:3.11
script:
- python3 -m pip install pytype
- pytype i3wsgroups
pyright_py39:
image: python:3.9
script:
- pyright
pyright_py310:
image: python:3.10
script:
- pyright
pyright_py311:
image: python:3.11
script:
- pyright
pyright_py312:
image: python:3.12
script:
- pyright
test_py38:
image: python:3.8
script: tox -e py38
test_py39:
image: python:3.9
script: tox -e py39
test_py310:
image: python:3.10
script: tox -e py310
test_py311:
image: python:3.11
script: tox -e py311
test_py312:
image: python:3.12
script: tox -e py312
shellcheck:
script:
- shellcheck bin/i3-assign-workspace-to-group
- shellcheck bin/i3-focus-on-workspace
- shellcheck bin/i3-move-to-workspace
- shellcheck bin/i3-rename-workspace
- shellcheck bin/i3-switch-active-workspace-group