-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 912 Bytes
/
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:
python-linter:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: pylint
shell: bash -l {0}
run: |
pylint flatsurvey || true
- name: black
shell: bash -l {0}
run: |
black --check --diff flatsurvey
- name: isort
shell: bash -l {0}
run: |
isort --profile black --check --diff flatsurvey