-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (29 loc) · 1.01 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
name: Lint
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
shell: bash -l {0}
run: |
sudo apt-get install -y codespell
sudo apt-get install -y pycodestyle
sudo pip install cython-lint
- name: Run codespell
shell: bash -l {0}
run: codespell -L pres,ans spherogram_src
- name: Run pycodestyle
shell: bash -l {0}
# We currently only check for some warnings. We should enable & fix more of them.
run: |
pycodestyle --select=E111,E221,E222,E225,E227,E228,E302,E305,E306,E401,E701,E702,E703,E704,W391,W605,E711,E713,E721 spherogram_src/
pycodestyle --select=E111,E221,E222,E225,E227,E228,E305,E306,E401,E701,E702,E703,E704,W391,W605,E711,E713,E721 dev/
- name: Run cython-lint
shell: bash -l {0}
run: cython-lint .
env:
MAKEFLAGS: -j2