-
-
Notifications
You must be signed in to change notification settings - Fork 296
148 lines (125 loc) · 3.36 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: lint
on:
push:
branches: master
pull_request:
permissions: read-all
jobs:
doc8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with doc8
run: |
pip install doc8
make doc8
flake8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with flake8
run: |
pip install flake8
make flake8
# this still contains failures
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with pylint
run: |
pip install -r requirements/devel.txt
export LANG=en-us
make pylint
pylint_site_packages:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with pylint
run: |
pip install -r requirements/mariadb.txt
pip install -r requirements/postgres.txt
pip install -r requirements/devel.txt
make pylint_site_packages
similar_strings:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint with pylint
run: |
pip install -r requirements/devel.txt
export LANG=en-us
make similar_strings
isort:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: isort --check
run: |
pip install -r requirements/devel.txt
export LANG=en-us
# skip kiwi_lint/__init__.py b/c the import order is used to easily
# figure out pylint numerical IDs by looking at the last import !!!
isort --check --color --diff --skip kiwi_lint/__init__.py .
black:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: psf/[email protected]
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run eslint
run: |
cd tcms/
./npm-install && npm install --dev
./node_modules/.bin/eslint .