Skip to content

Commit 7b954b9

Browse files
committed
move make file to fit monorepo style
1 parent b198591 commit 7b954b9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Makefile renamed to packages/sdk/server-ai/Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PYTEST_FLAGS=-W error::SyntaxWarning
33
SPHINXOPTS = -W --keep-going
44
SPHINXBUILD = sphinx-build
55
SPHINXPROJ = launchdarkly-server-sdk
6-
SOURCEDIR = docs
6+
SOURCEDIR = ../../../docs
77
BUILDDIR = $(SOURCEDIR)/build
88

99
.PHONY: help
@@ -15,7 +15,7 @@ help: #! Show this help message
1515

1616
.PHONY: install
1717
install:
18-
@cd packages/sdk/server-ai && poetry install
18+
poetry install
1919

2020
#
2121
# Quality control checks
@@ -24,20 +24,21 @@ install:
2424
.PHONY: test
2525
test: #! Run unit tests
2626
test: install
27-
@cd packages/sdk/server-ai && poetry run pytest $(PYTEST_FLAGS)
27+
poetry run pytest $(PYTEST_FLAGS)
2828

2929
.PHONY: lint
3030
lint: #! Run type analysis and linting checks
3131
lint: install
32-
@cd packages/sdk/server-ai && poetry run mypy src/ldai
33-
@cd packages/sdk/server-ai && poetry run isort --check --atomic src/ldai
34-
@cd packages/sdk/server-ai && poetry run pycodestyle src/ldai
32+
poetry run mypy src/ldai
33+
poetry run isort --check --atomic src/ldai
34+
poetry run pycodestyle src/ldai
3535

3636
#
3737
# Documentation generation
3838
#
3939

4040
.PHONY: docs
4141
docs: #! Generate sphinx-based documentation
42-
@cd packages/sdk/server-ai && poetry install --with docs
43-
@cd packages/sdk/server-ai && poetry run $(SPHINXBUILD) -M html "../../../$(SOURCEDIR)" "../../../$(BUILDDIR)" $(SPHINXOPTS) $(O)
42+
poetry install --with docs
43+
poetry run $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
44+

0 commit comments

Comments
 (0)