-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (31 loc) · 906 Bytes
/
lint.yaml
File metadata and controls
36 lines (31 loc) · 906 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
30
31
32
33
34
35
name: lint
on:
push:
pull_request:
types: [opened, reopened]
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Python dependencies
run: pip install black flake8
- name: Run linters
uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
# Enable linters
black: true
flake8: true
# Mark the following line true if you want linters to attempt to
# autocorrect your code
auto_fix: true
git_name: "Greene Lab Linter"
git_email: "miltondp@gmail.com"
commit_message: "fix code style issues with ${linter}"