From d818b62ee50a58031649ea822f02b3a662a57b44 Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Wed, 8 Apr 2020 09:54:36 -0700 Subject: [PATCH] refactor lint->lint-server, introduce lint to lint all --- .github/workflows/push_tests.yml | 4 ++-- Makefile | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index d52b0ec1..e3047ab7 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -27,11 +27,11 @@ jobs: - name: Lint with flake8 run: | pip install flake8 - make lint + make lint-server - name: Lint all with eslint if: github.ref == 'refs/heads/master' run: | - make lint-client + make lint-client - name: Lint diff with eslint if: github.ref != 'refs/heads/master' run: | diff --git a/Makefile b/Makefile index 3c8cdf52..8f5e731e 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,10 @@ fmt-py: black . .PHONY: lint -lint: +lint: lint-server lint-client + +.PHONY: lint-server +lint-server: flake8 server .PHONY: lint-client