From db3f5467f3c34df938d0ff431e0795e6e80bb26d Mon Sep 17 00:00:00 2001 From: atashnezhad Date: Sat, 24 Jun 2023 23:09:50 -0500 Subject: [PATCH] edit the CI for lint --- .github/workflows/main.yml | 4 +++- Makefile | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 82b2303..524f6a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,6 @@ on: branches: - main - master - - '*' - 'feature/*' tags: - "v*.*.*" @@ -32,6 +31,9 @@ jobs: - name: Install dependencies run: make install_requirements + - name: lint + run: make lint_flake8 + - name: Run tests run: make test-coverage diff --git a/Makefile b/Makefile index 6c2c8cd..a9563c4 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,14 @@ run-flake8: flake8 neural_network_model/*.py #flake8 tests/*.py +# lint +.PHONY: lint_flake8 +lint: + @echo "flake8..." + @flake8 neural_network_model/*.py + @flake8 tests/*.py + + # run black on all python files in the src folder .PHONY: run-black run-black: