-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (32 loc) · 1.08 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
name: Lint
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: Install dependencies
shell: bash -l {0}
run: |
mamba install -y codespell pycodestyle cython-lint ruff=0.0.292
- name: Run codespell
shell: bash -l {0}
run: codespell `git ls-files`
- name: Run pycodestyle
shell: bash -l {0}
# We currently only check for some warnings. We should enable & fix more of them.
run: pycodestyle --select=W2,W3 surface_dynamics/
- name: Run cython-lint
shell: bash -l {0}
run: cython-lint --ignore=E501,E261,E222,E265,E266,E127,E128,E231,E741 surface_dynamics
- name: Run ruff
shell: bash -l {0}
run: |
ruff check --select D207,D208 surface_dynamics