mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 10:48:12 +08:00
run black formatter on repo (#1891)
* add black to lint make cmd * add black dependency to installation to push test pipeline
This commit is contained in:
@@ -31,9 +31,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install flake8
|
pip install flake8
|
||||||
|
pip install black
|
||||||
cd client
|
cd client
|
||||||
npm install
|
npm install
|
||||||
- name: Lint with flake8
|
- name: Format with black and lint with flake8
|
||||||
run: |
|
run: |
|
||||||
make lint-server
|
make lint-server
|
||||||
- name: Lint src with eslint
|
- name: Lint src with eslint
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ fmt-py:
|
|||||||
lint: lint-server lint-client
|
lint: lint-server lint-client
|
||||||
|
|
||||||
.PHONY: lint-server
|
.PHONY: lint-server
|
||||||
lint-server:
|
lint-server: fmt-py
|
||||||
flake8 server --per-file-ignores='server/test/fixtures/dataset_config_outline.py:F821 server/test/fixtures/server_config_outline.py:F821'
|
flake8 server --per-file-ignores='server/test/fixtures/dataset_config_outline.py:F821 server/test/fixtures/server_config_outline.py:F821'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user