Skip to content

Commit 6fc1067

Browse files
committed
use makefile
1 parent a58e1f9 commit 6fc1067

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/python-app.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ jobs:
2626
make install
2727
- name: Lint with flake8
2828
run: |
29-
# stop the build if there are Python syntax errors or undefined names
30-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
32-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
29+
make lint
3330
- name: Test with pytest
3431
run: |
35-
pytest
32+
make test

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ install:
1010
bot:
1111
python3 examples/ding-dong-bot.py
1212

13+
.PHONY: lint
14+
lint:
15+
# stop the build if there are Python syntax errors or undefined names
16+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
17+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
18+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
19+
1320
.PHONY: test
1421
test: pytest
1522

0 commit comments

Comments
 (0)