Skip to content

Commit

Permalink
Merge pull request #2 from nodestream-proj/feature/0.10
Browse files Browse the repository at this point in the history
Support Nodestream `0.10`
  • Loading branch information
zprobst authored Jan 5, 2024
2 parents 59d5f09 + 39159af commit 30fd407
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 350 deletions.
40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
SHELL := /bin/bash

.PHONY: setup
setup: venv lint test-unit

.PHONY: clean-pyc
clean-pyc:
find . -name '*.pyc' -exec rm -rf {} +
find . -name '*.pyo' -exec rm -rf {} +
find . -name '*~' -exec rm -rf {} +
find . -name '__pycache__' -exec rm -rf {} +

.PHONY: clean-test
clean-test:
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .coverage
rm -rf .reports
rm -rf htmlcov/
rm -rf .pytest_cache

.PHONY: clean
clean: clean-pyc clean-test

venv: poetry.lock
poetry install

.PHONY: format
format: venv
poetry run black nodestream_plugin_k8s tests
poetry run isort nodestream_plugin_k8s tests

.PHONY: lint
lint: venv
poetry run black nodestream_plugin_k8s tests --check
poetry run ruff nodestream_plugin_k8s tests

.PHONY: test-unit
test-unit: venv
poetry run pytest -m "not e2e"
Loading

0 comments on commit 30fd407

Please # to comment.