From 09c7a98aaef5788626f6e1737857cb64bbf1ad75 Mon Sep 17 00:00:00 2001 From: wf001 Date: Tue, 22 Nov 2022 10:57:28 +0000 Subject: [PATCH] update: improve make command. --- .github/workflows/python.yaml | 2 +- Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index e6df4dc..aa9ec5e 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -26,4 +26,4 @@ jobs: make install-dev - name: Lint with flake8 run: | - make check + make ci diff --git a/Makefile b/Makefile index 01bb47f..085ae58 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,12 @@ check: make test && \ make lint +ci: + make test && \ + black ${TARGET} --check && \ + isort ${TARGET} --check && \ + flake8 ${TARGET} + test: pytest --capture=no -vv @@ -18,7 +24,7 @@ lint: make mypy-only && \ black ${TARGET} && \ isort ${TARGET} && \ - flake8 ${TARGET} --doctest + flake8 ${TARGET} mypy-only: mypy ${TARGET}