Skip to content

Commit 81f71e5

Browse files
authored
Add GitHub Action to lint Python code
1 parent b7cab9d commit 81f71e5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/lint_python.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: lint_python
2+
on:
3+
pull_request:
4+
push:
5+
# branches: [master]
6+
jobs:
7+
lint_python:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- uses: actions/setup-python@master
12+
- run: pip install black codespell flake8 isort pytest
13+
- run: black . --diff || true
14+
- run: codespell --quiet-level=2 || true # --ignore-words-list="" --skip=""
15+
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
16+
- run: isort --recursive . || true
17+
- run: pip install -r requirements.txt || true
18+
- run: pytest . || true

0 commit comments

Comments
 (0)