Skip to content

Commit

Permalink
Update coveragespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jan 1, 2021
1 parent ddd7610 commit 80887f3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 31 deletions.
22 changes: 7 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# Project settings
PROJECT := Datafiles
PACKAGE := datafiles
REPOSITORY := jacebrowning/datafiles

# Project paths
PACKAGES := $(PACKAGE) tests
MODULES := $(wildcard $(PACKAGE)/*.py)

# Virtual environment paths
VIRTUAL_ENV ?= .venv

# MAIN TASKS ##################################################################

.PHONY: all
Expand All @@ -35,6 +26,7 @@ doctor: ## Confirm system dependencies are available

# PROJECT DEPENDENCIES ########################################################

VIRTUAL_ENV ?= .venv
DEPENDENCIES := $(VIRTUAL_ENV)/.poetry-$(shell bin/checksum pyproject.toml poetry.lock)

.PHONY: install
Expand All @@ -56,25 +48,25 @@ poetry.lock: pyproject.toml

.PHONY: format
format: install
poetry run isort $(PACKAGES)
poetry run black $(PACKAGES)
poetry run isort $(PACKAGE) tests
poetry run black $(PACKAGE) tests
@ echo

.PHONY: check
check: install format ## Run formaters, linters, and static analysis
ifdef CI
git diff --exit-code
endif
poetry run mypy $(PACKAGES) --config-file=.mypy.ini
- poetry run pylint $(PACKAGES) --rcfile=.pylint.ini
poetry run pydocstyle $(PACKAGES)
poetry run mypy $(PACKAGE) tests --config-file=.mypy.ini
poetry run pylint $(PACKAGE) tests --rcfile=.pylint.ini
poetry run pydocstyle $(PACKAGE) tests

# TESTS #######################################################################

.PHONY: test
test: install ## Run unit and integration tests
poetry run pytest --random
poetry run coveragespace $(REPOSITORY) overall
poetry run coveragespace update overall

.PHONY: test-repeat
test-repeat: install
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mkdocs==1.0.4
Pygments==2.7.1
mkdocs @ file:///Users/Browning/Library/Caches/pypoetry/artifacts/e5/99/40/ea12a1537f1ac078ea1e60daddb6e0146998f05524ac67801841df7912/mkdocs-1.0.4-py2.py3-none-any.whl
Pygments @ file:///Users/Browning/Library/Caches/pypoetry/artifacts/55/19/01/03c29b8b02ada7deea787fb6022cc1a5fe851e0916c1512823fc3e2059/Pygments-2.7.1-py3-none-any.whl
58 changes: 45 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pytest-profiling = "*"

# Coverage
coverage = "<5"
coveragespace = "^3.1.1"
coveragespace = "^4.0"

# Documentation
mkdocs = "~1.0"
Expand Down

0 comments on commit 80887f3

Please sign in to comment.