Skip to content

Add Makefiles with convenience functions to each indicator #443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 6, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions _delphi_utils_python/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions _template_python/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions cdc_covidnet/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions changehc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions claims_hosp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions combo_cases_and_deaths/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions google_health/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions google_symptoms/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions jhu/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions nchs_mortality/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions quidel/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions quidel_covidtest/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions safegraph/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions safegraph_patterns/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env
23 changes: 23 additions & 0 deletions usafacts/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY = venv, lint, test, clean

dir = $(shell find ./delphi_* -name __init__.py | sed 's/\/__init__.py//g;s/\.\///g')

venv:
python3 -m venv env

install: venv
. env/bin/activate; \
pip install wheel ; \
pip install -e ../_delphi_utils_python ;\
pip install -e .

lint:
. env/bin/activate; \
pylint $(dir)

test:
. env/bin/activate ;\
(cd tests && ../env/bin/pytest --cov=$(dir) --cov-report=term-missing)

clean:
rm -r env