Skip to content

Commit

Permalink
fix PyLance complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Mausy5043 committed Oct 19, 2024
1 parent 5b1599e commit 416dfe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 1 addition & 6 deletions bin/ms-trend.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ def fetch_data_production(hours_to_fetch=48, aggregation="H") -> pd.DataFrame:
if DEBUG:
print("\n*** fetching PRODUCTION data ***")

mod_start = ""
# aggregations = "HDMA"
# mods = ["hour", "day", "month", "year"]
# mod_start = f", 'start of {mods[aggregations.index(aggregation)]}'"

where_condition = (
f" ( sample_time >= datetime({EDATETIME}, '-{hours_to_fetch + 1} hours')"
f" AND sample_time <= datetime({EDATETIME}, '+2 hours') )"
Expand Down Expand Up @@ -302,7 +297,7 @@ def plot_graph(output_file, data_dict, plot_title, show_data=False, locatorforma
if show_data:
x_offset = -0.1
for p in ax1.patches:
b = p.get_bbox() # type: ignore
b = p.get_bbox()
val = f"{b.y1 - b.y0:{constants.FLOAT_FMT}}"
ax1.annotate(
val,
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ no_implicit_reexport = true
check_untyped_defs = true
extra_checks = true


[tool.pydocstyle]
inherit = false
convention = 'google'
match = '.*\\.py'
add-ignore = 'D'

[tool.pyright]
reportAttributeAccessIssue="none"

0 comments on commit 416dfe6

Please sign in to comment.