Skip to content

Commit

Permalink
chore: update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jul 6, 2023
1 parent 6c19baa commit 01267d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.272'
rev: 'v0.0.277'
hooks:
- id: ruff
args: [--fix]
Expand All @@ -24,5 +24,5 @@ repos:
hooks:
- id: nbqa-black
- id: nbqa-ruff
additional_dependencies: [ruff==v0.0.270]
additional_dependencies: [ruff==v0.0.277]

5 changes: 1 addition & 4 deletions popmon/visualization/histogram_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ def transform(self, data_obj: dict, sections: list | None = None):
histogram = []

# filter out potential empty heatmap plots, then prepend them to the sorted histograms
hplots = []
for h in heatmaps:
if isinstance(h, dict) and len(h["plot"]):
hplots.append(h)
hplots = [h for h in heatmaps if isinstance(h, dict) and len(h["plot"])]

if len(hplots) > 0:
plot_type_layouts["heatmap"] = hplots[0]["layout"]
Expand Down

0 comments on commit 01267d9

Please sign in to comment.