mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 05:08:12 +08:00
Add yapf for automatic code formatting
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ cache:
|
||||
- npm
|
||||
install:
|
||||
- set -eo pipefail
|
||||
- pip install flake8
|
||||
- pip install yapf flake8
|
||||
- make pydist
|
||||
- make install-dist
|
||||
- pip install -r server/requirements-dev.txt
|
||||
|
||||
@@ -62,6 +62,12 @@ fmt: fmt-client fmt-server
|
||||
fmt-%:
|
||||
cd $(*) && $(MAKE) fmt
|
||||
|
||||
.PHONY: lint
|
||||
lint: lint-server
|
||||
|
||||
lint-%:
|
||||
cd $(*) && $(MAKE) lint
|
||||
|
||||
|
||||
# CREATING DISTRIBUTION RELEASE
|
||||
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
fmt:
|
||||
yapf -ir .
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
flake8
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f app/web/templates/index.html
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
set -eo pipefail
|
||||
flake8 server
|
||||
make lint
|
||||
npm run --prefix client/ build
|
||||
npm run --prefix client/ unit-test
|
||||
pytest -s server/test
|
||||
|
||||
Reference in New Issue
Block a user