Skip to content

Commit 157d0de

Browse files
authored
Merge pull request #42 from hugovk/cache-processed-activities
2 parents 3f05e06 + fe894f9 commit 157d0de

11 files changed

+53
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ version.source = "vcs"
6161
local_scheme = "no-local-version"
6262

6363
[tool.isort]
64+
add_imports = "from __future__ import annotations"
6465
profile = "black"

src/stravavis/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from . import cli
24

35
if __name__ == "__main__":

src/stravavis/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import argparse
24
import glob
35
import os.path
@@ -89,7 +91,7 @@ def main():
8991
if os.path.isdir(args.path):
9092
args.path = os.path.join(args.path, "*")
9193

92-
filenames = glob.glob(args.path)
94+
filenames = sorted(glob.glob(args.path))
9395
if not filenames:
9496
sys.exit(f"No files found matching {args.path}")
9597

src/stravavis/plot_calendar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import calmap
24
import matplotlib.pyplot as plt
35
import pandas as pd

src/stravavis/plot_dumbbell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pandas as pd
24
from plotnine import (
35
aes,

src/stravavis/plot_elevations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import math
24

35
import matplotlib.pyplot as plt

src/stravavis/plot_facets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import math
24

35
import matplotlib.pyplot as plt

src/stravavis/plot_landscape.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import matplotlib.pyplot as plt
24
import pandas as pd
35
from rich.progress import track

src/stravavis/plot_map.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from math import log, pi, tan
24

35
import matplotlib.pyplot as plt

src/stravavis/process_activities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pandas as pd
24

35

0 commit comments

Comments
 (0)