Skip to content

Commit 0c5952f

Browse files
committed
update github actions
1 parent 09420f2 commit 0c5952f

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
on: [push, pull_request]
2-
name: Python Linting
1+
name: Lint
32

4-
permissions:
5-
contents: read
3+
on: [push, pull_request]
64

75
jobs:
8-
PythonLinting:
9-
name: Python linting
6+
run-linters:
7+
name: Run linters
108
runs-on: ubuntu-latest
9+
1110
steps:
12-
- uses: actions/checkout@master
13-
- name: Konstruktoid Python linting
14-
uses: konstruktoid/action-pylint@master
11+
- name: Check out Git repository
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.9
18+
19+
- name: Install Python dependencies
20+
run: pip install black flake8
21+
22+
- name: Run linters
23+
uses: wearerequired/lint-action@v1
24+
with:
25+
black: true
26+
flake8: true
27+
flake8_args: --ignore=E501
28+
auto_fix: true
29+
continue_on_error: false

0 commit comments

Comments
 (0)