forked from datajoint/datajoint-python
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 796 Bytes
/
lint.yaml
File metadata and controls
29 lines (29 loc) · 796 Bytes
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
name: Lint
on:
push:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
pull_request:
branches:
- "**" # every branch
- "!gh-pages" # exclude gh-pages branch
- "!stage*" # exclude branches beginning with stage
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
# enforce the same check as pre-commit
# but only run important checks
- uses: pre-commit/action@v3.0.1
with:
extra_args: codespell --all-files
- uses: pre-commit/action@v3.0.1
with:
extra_args: black --all-files
- uses: pre-commit/action@v3.0.1
with:
extra_args: flake8 --all-files