refactor lint->lint-server, introduce lint to lint all

This commit is contained in:
Severiano Badajoz
2020-04-08 09:54:36 -07:00
parent e1c5408acc
commit d818b62ee5
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -27,11 +27,11 @@ jobs:
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
pip install flake8 pip install flake8
make lint make lint-server
- name: Lint all with eslint - name: Lint all with eslint
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
make lint-client make lint-client
- name: Lint diff with eslint - name: Lint diff with eslint
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/master'
run: | run: |
+4 -1
View File
@@ -74,7 +74,10 @@ fmt-py:
black . black .
.PHONY: lint .PHONY: lint
lint: lint: lint-server lint-client
.PHONY: lint-server
lint-server:
flake8 server flake8 server
.PHONY: lint-client .PHONY: lint-client