-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dd5863
commit 55ccca3
Showing
15 changed files
with
355 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
release: | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
# | ||
# Pylint Quotes | ||
# | ||
|
||
PKG_VER := $(shell cat pylint_quotes/__version__.py | grep __version__ | awk '{print $$3}' | tr -d "'") | ||
|
||
|
||
.PHONY: init | ||
init: ## Initialize the repo for development | ||
pip install pipenv | ||
pipenv install --dev --skip-lock | ||
|
||
.PHONY: coverage | ||
coverage: ## Run tests and report on coverage | ||
pipenv run py.test --cov-report term --cov=pylint_quotes tests | ||
|
||
.PHONY: lint | ||
lint: ## Lint the source code (pylint, flake8, isort) | ||
pipenv run pylint pylint_quotes | ||
pipenv run flake8 --ignore E501 pylint_quotes | ||
pipenv run isort pylint_quotes -rc -c --diff | ||
|
||
.PHONY: publish | ||
publish: ## Publish to PyPi | ||
pip install 'twine>=1.5.0' | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
rm -rf build/ dist/ pylint_quotes.egg-info/ | ||
rm -rf build dist .egg pylint_quotes.egg-info | ||
|
||
.PHONY: test | ||
test: ## Run unit tests | ||
pipenv run py.test | ||
|
||
.PHONY: version | ||
version: ## Print the version of Synse Server | ||
@echo "$(PKG_VER)" | ||
|
||
.PHONY: help | ||
help: ## Print Make usage information | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort | ||
|
||
coverage: | ||
pytest --verbose --cov-report term --cov-report xml --cov=pylint_quotes tests | ||
.DEFAULT_GOAL := help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[[source]] | ||
|
||
url = "https://pypi.python.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
|
||
[packages] | ||
|
||
"e1839a8" = {path = ".", editable = true} | ||
|
||
|
||
[dev-packages] | ||
|
||
pytest = ">=3.4.0" | ||
coverage = "*" | ||
pytest-cov = "*" | ||
"flake8" = "*" | ||
isort = "*" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.