Skip to content

Commit

Permalink
chore: updated make check
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Mar 12, 2024
1 parent 789f639 commit 675b049
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
IMAGE_NAME=nebulabroadcast/nebula-server:latest
IMAGE_NAME=nebulabroadcast/nebula-server:dev
VERSION=$(shell cd backend && poetry run python -c 'import nebula' --version)

check: check_version
cd frontend && yarn format

cd backend && \
poetry run black . && \
poetry run ruff --fix . && \
poetry run ruff format . && \
poetry run ruff check --fix . && \
poetry run mypy .

check_version:
echo $(VERSION)
sed -i "s/^version = \".*\"/version = \"$(VERSION)\"/" backend/pyproject.toml
cd backend && poetry version $(VERSION)

build:
docker build -t $(IMAGE_NAME) .
Expand Down

0 comments on commit 675b049

Please sign in to comment.