-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Installs dependencies
install:
pipenv install
lint-pylint: ## runs linting
poetry run pylint kvault
lint-mypy: ## runs type checking
poetry run mypy .
lint-flake8: ## Runs formatting with flake8
poetry run flake8 kvault
lint-black: ## Runs formatting with black
poetry run black kvault
lint: lint-black lint-flake8 lint-mypy lint-pylint
test: # runs tests
poetry run pytest
build: # builds and packages the application
poetry self add "poetry-dynamic-versioning[plugin]"
poetry build
test-cover: # Runs tests with coverage
poetry run pytest --cov=kvault tests/
pre-commit-install: # installs pre commit hooks
poetry run pre-commit install
pre-commit: # runs pre commit hooks
poetry run pre-commit run --all-files
publish: build # publishes library to PyPI
poetry run twine upload --verbose -u '__token__' dist/*
start: ## starts server
python kvault.py