Skip to content

Commit

Permalink
Upgrade pchs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Jul 16, 2024
1 parent c863b6f commit 35ea32a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/Quantco/pre-commit-mirrors-black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black-conda
args:
- --safe
- --target-version=py38
- --target-version=py311
- repo: https://github.com/Quantco/pre-commit-mirrors-flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8-conda
- repo: https://github.com/Quantco/pre-commit-mirrors-isort
Expand Down
8 changes: 5 additions & 3 deletions monitoring/cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ def prune_events(events):
raw_data = [
{
"date_string": event["start"]["dateTime"],
"distance": event["description"].split("km")[0]
if "description" in event and "km" in event["description"]
else None,
"distance": (
event["description"].split("km")[0]
if "description" in event and "km" in event["description"]
else None
),
"title": event["summary"].lower(),
}
for event in events
Expand Down

0 comments on commit 35ea32a

Please sign in to comment.