Skip to content

Commit 9075084

Browse files
dshemetovdsweber2
authored andcommitted
lint: remove NEWLINE constant, consistent style
1 parent a9073ed commit 9075084

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

nchs_mortality/delphi_nchs_mortality/constants.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@
2525
"prop"
2626
]
2727
INCIDENCE_BASE = 100000
28-
29-
# this is necessary as a delimiter in the f-string expressions we use to
30-
# construct detailed error reports
31-
# (https://www.python.org/dev/peps/pep-0498/#escape-sequences)
32-
NEWLINE = "\n"

nchs_mortality/delphi_nchs_mortality/pull.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from delphi_utils.geomap import GeoMapper
1111

12-
from .constants import METRICS, RENAME, NEWLINE
12+
from .constants import METRICS, RENAME
1313

1414
def standardize_columns(df):
1515
"""Rename columns to comply with a standard set.
@@ -90,10 +90,10 @@ def pull_nchs_mortality_data(socrata_token: str, test_file: Optional[str] = None
9090
have changed. Please investigate and amend the code.
9191
9292
Columns needed:
93-
{NEWLINE.join(type_dict.keys())}
93+
{'\n'.join(type_dict.keys())}
9494
9595
Columns available:
96-
{NEWLINE.join(df.columns)}
96+
{'\n'.join(df.columns)}
9797
""") from exc
9898

9999
df = df[keep_columns + ["timestamp", "state"]].set_index("timestamp")

0 commit comments

Comments
 (0)