forked from opendatacube/datacube-core
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (78 loc) · 2 KB
/
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
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
name: lint
on:
pull_request:
paths:
- '**'
push:
paths:
- '**'
- '!.github/**'
- '.github/workflows/lint.yaml'
- '!docker/**'
- '!docs/**'
- '!contrib/**'
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
name: Pylint
steps:
- name: checkout git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: run pylint
run: |
sudo apt-get remove python3-openssl
pip install --upgrade -e '.[test]'
pylint -j 2 --reports no datacube
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
name: MyPy
steps:
- name: checkout git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: run mypy
run: |
sudo apt-get remove python3-openssl
pip install --upgrade -e '.[types]'
mypy datacube
pycodestyle:
name: pycodestyle
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Run pycodestyle
run: |
sudo apt-get remove python3-openssl
pip install --upgrade -e '.[test]'
pycodestyle tests integration_tests examples --max-line-length 120