Skip to content

Commit

Permalink
Merge pull request #108 from quantmind/ls-make
Browse files Browse the repository at this point in the history
makefile
  • Loading branch information
lsbardel authored Oct 29, 2024
2 parents d5d171b + 072ae9a commit 9cb58b2
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.PHONY: help

help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'


.PHONY: clean
clean: ## remove python cache files
find . -name '__pycache__' | xargs rm -rf
find . -name '*.pyc' -delete
@@ -14,46 +13,50 @@ clean: ## remove python cache files
rm -rf .mypy_cache
rm -rf .coverage


.PHONY: install
install: ## install packages in virtualenv
@./dev/install


.PHONY: lint
lint: ## run linters
@poetry run ./dev/lint-code fix


.PHONY: lint-check
lint-check: ## run black check in CI
@poetry run ./dev/lint-code


.PHONY: outdated
outdated: ## Show outdated packages
poetry show -o -a


.PHONY: version
version: ## display software version
@poetry run python -c "import kong; print(kong.__version__)"


.PHONY: services
services: ## Starts services
@docker-compose -f ./dev/docker-compose.yml up --remove-orphans

@docker compose -f ./dev/docker-compose.yml up --remove-orphans

.PHONY: services-ci
services-ci: ## Starts CI services
@docker-compose -f ./dev/docker-compose.yml up --remove-orphans -d
@docker compose -f ./dev/docker-compose.yml up --remove-orphans -d

.PHONY: services-stop
services-stop: ## Stop services
@docker compose -f ./dev/docker-compose.yml stop

.PHONY: test
test: ## run tests
@poetry run pytest -x -vvv --cov --cov-report xml --cov-report html


.PHONY: test-codecov
test-codecov: ## upload code coverage
@poetry run codecov --token $(CODECOV_TOKEN) --file ./build/coverage.xml


.PHONY: test-version
test-version: ## check version compatibility
@./dev/test-version


.PHONY: publish
publish: ## release to pypi and github tag
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
[![Downloads](https://img.shields.io/pypi/dd/aio-kong.svg)](https://pypi.org/project/aio-kong/)


Tested with [kong][] v3.7
Tested with [kong][] v3.8

## Installation & Testing

0 comments on commit 9cb58b2

Please sign in to comment.