Skip to content

Commit

Permalink
Format code with line length 120
Browse files Browse the repository at this point in the history
Add more linting checks
  • Loading branch information
gutzbenj committed Jan 22, 2022
1 parent d3fed23 commit 2e0a009
Show file tree
Hide file tree
Showing 76 changed files with 648 additions and 1,339 deletions.
5 changes: 1 addition & 4 deletions example/observations_sql.py
Expand Up @@ -41,10 +41,7 @@ def sql_example():

stations = request.filter_by_station_id(station_id=(1048,))

sql = (
"SELECT * FROM data WHERE "
"parameter='temperature_air_mean_200' AND value < -7.0;"
)
sql = "SELECT * FROM data WHERE " "parameter='temperature_air_mean_200' AND value < -7.0;"
log.info(f"Invoking SQL query '{sql}'")

# Acquire observation values and filter with SQL.
Expand Down
4 changes: 1 addition & 3 deletions example/radar/radar_composite_rw.py
Expand Up @@ -70,9 +70,7 @@ def plot_radolan(data: np.ndarray, attrs: dict, grid: np.dstack, clabel: str = N
cb.set_label(clabel)
plt.xlabel("x [km]")
plt.ylabel("y [km]")
plt.title(
"{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat())
)
plt.title("{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat()))
plt.xlim((x[0, 0], x[-1, -1]))
plt.ylim((y[0, 0], y[-1, -1]))
plt.grid(color="r")
Expand Down
4 changes: 1 addition & 3 deletions example/radar/radar_radolan_cdc.py
Expand Up @@ -95,9 +95,7 @@ def plot_radolan(data: np.ndarray, attrs: dict, grid: np.dstack, clabel: str = N
cb.set_label(clabel)
plt.xlabel("x [km]")
plt.ylabel("y [km]")
plt.title(
"{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat())
)
plt.title("{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat()))
plt.xlim((x[0, 0], x[-1, -1]))
plt.ylim((y[0, 0], y[-1, -1]))
plt.grid(color="r")
Expand Down
4 changes: 1 addition & 3 deletions example/radar/radar_radolan_rw.py
Expand Up @@ -94,9 +94,7 @@ def plot_radolan(data: np.ndarray, attrs: dict, grid: np.dstack, clabel: str = N
cb.set_label(clabel)
plt.xlabel("x [km]")
plt.ylabel("y [km]")
plt.title(
"{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat())
)
plt.title("{0} Product\n{1}".format(attrs["producttype"], attrs["datetime"].isoformat()))
plt.xlim((x[0, 0], x[-1, -1]))
plt.ylim((y[0, 0], y[-1, -1]))
plt.grid(color="r")
Expand Down
5 changes: 1 addition & 4 deletions example/radar/radar_scan_precip.py
Expand Up @@ -94,10 +94,7 @@ def radar_scan_precip():
subset=DwdRadarDataSubset.POLARIMETRIC,
)

log.info(
f"Acquiring radar SWEEP_PCP data for {DwdRadarSite.ESS} at "
f"{request_velocity.start_date}"
)
log.info(f"Acquiring radar SWEEP_PCP data for {DwdRadarSite.ESS} at " f"{request_velocity.start_date}")

# Submit requests.
results = chain(request_velocity.query(), request_reflectivity.query())
Expand Down
5 changes: 1 addition & 4 deletions example/radar/radar_scan_volume.py
Expand Up @@ -94,10 +94,7 @@ def radar_scan_volume():
subset=DwdRadarDataSubset.POLARIMETRIC,
)

log.info(
f"Acquiring radar SWEEP_VOL data for {DwdRadarSite.ESS} at "
f"{request_velocity.start_date}"
)
log.info(f"Acquiring radar SWEEP_VOL data for {DwdRadarSite.ESS} at " f"{request_velocity.start_date}")

# Submit requests.
results = chain(request_velocity.query(), request_reflectivity.query())
Expand Down
152 changes: 133 additions & 19 deletions poetry.lock

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

0 comments on commit 2e0a009

Please sign in to comment.