-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat+lint+ci: unify linters, add
make format
* all linters now use the same configuration file * add `make format` command to format all code * make sure all indicators pass with the new config * update the template files as well * add a new darker format job to CI * add python package caching * update README
- Loading branch information
Showing
47 changed files
with
189 additions
and
288 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,28 +16,40 @@ jobs: | |
if: github.event.pull_request.draft == false | ||
strategy: | ||
matrix: | ||
packages: | ||
[ | ||
_delphi_utils_python, | ||
changehc, | ||
claims_hosp, | ||
doctor_visits, | ||
google_symptoms, | ||
hhs_hosp, | ||
nchs_mortality, | ||
nwss_wastewater, | ||
quidel_covidtest, | ||
sir_complainsalot, | ||
] | ||
include: | ||
- package: "_delphi_utils_python" | ||
dir: "delphi_utils" | ||
- package: "changehc" | ||
dir: "delphi_changehc" | ||
- package: "claims_hosp" | ||
dir: "delphi_claims_hosp" | ||
- package: "doctor_visits" | ||
dir: "delphi_doctor_visits" | ||
- package: "google_symptoms" | ||
dir: "delphi_google_symptoms" | ||
- package: "hhs_hosp" | ||
dir: "delphi_hhs" | ||
- package: "nchs_mortality" | ||
dir: "delphi_nchs_mortality" | ||
- package: "nwss_wastewater" | ||
dir: "delphi_nwss" | ||
- package: "quidel_covidtest" | ||
dir: "delphi_quidel_covidtest" | ||
- package: "sir_complainsalot" | ||
dir: "delphi_sir_complainsalot" | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.packages }} | ||
working-directory: ${{ matrix.package }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
cache: "pip" | ||
cache-dependency-path: "setup.py" | ||
- name: Install testing dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -51,3 +63,8 @@ jobs: | |
- name: Test | ||
run: | | ||
make test | ||
- uses: akaihola/[email protected] | ||
with: | ||
options: "--check --diff --isort --color" | ||
src: "${{ matrix.package }}/${{ matrix.dir }}" | ||
version: "~=2.1.1" |
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 was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
""" | ||
|
||
# standard packages | ||
import logging | ||
|
||
# third party | ||
import numpy as np | ||
import pandas as pd | ||
|
Oops, something went wrong.