Skip to content

Commit

Permalink
Merge pull request #15 from lowtower/bump_year_2025
Browse files Browse the repository at this point in the history
Bump year 2025
  • Loading branch information
lowtower authored Feb 2, 2025
2 parents 6deb783 + f393a39 commit 88d7117
Show file tree
Hide file tree
Showing 42 changed files with 83 additions and 48 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ jobs:
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Git config
run: git config --global core.autocrlf input
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ E.g. use [Poedit](https://poedit.net/) or [Localise Online Editor](https://local
`msgfmt gpxposter.po -o gpxposter.mo`

## License
[MIT](https://github.com/flopp/GpxTrackPoster/blob/master/LICENSE) © 2016-2023 Florian Pigorsch
[MIT](https://github.com/flopp/GpxTrackPoster/blob/master/LICENSE) © 2016-2025 Florian Pigorsch

[strava-activity-type]: https://developers.strava.com/docs/reference/#api-models-ActivityType
3 changes: 2 additions & 1 deletion gpxtrackposter/calendar_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Draw a calendar poster."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
9 changes: 5 additions & 4 deletions gpxtrackposter/circular_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Draw a circular Poster."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down Expand Up @@ -236,7 +237,7 @@ def _draw_rings(
if self._max_distance:
max_length = self._max_distance
assert max_length is not None
max_length = max_length.to(self._unit)
max_length = max_length.to(self._unit) # type: ignore
ring_distance = self._determine_ring_distance(max_length)
if ring_distance is None:
return
Expand All @@ -253,7 +254,7 @@ def _draw_rings(
stroke_width=0.3,
)
)
distance += ring_distance
distance += ring_distance # type: ignore

def _draw_circle_segment(
self,
Expand All @@ -272,7 +273,7 @@ def _draw_circle_segment(
color = self.color(self.poster.length_range_by_date, length, has_special)
max_length = self.poster.length_range_by_date.upper()
if self._max_distance:
max_length = self._max_distance.to_base_units()
max_length = self._max_distance.to_base_units() # type: ignore
assert max_length is not None
r1 = rr.lower()
assert r1 is not None
Expand Down
2 changes: 1 addition & 1 deletion gpxtrackposter/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Entry point - cli.py
"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Exceptions"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/github_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Draw a GitHub style poster."""
# Copyright 2020-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2020-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/grid_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Draw a grid poster."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/heatmap_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Draw a heatmap poster."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/localization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Localization helpers."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
5 changes: 3 additions & 2 deletions gpxtrackposter/poster.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Create a poster from track data."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down Expand Up @@ -383,7 +384,7 @@ def _compute_track_statistics(
weeks = {}
for t in self.tracks:
total_length += t.length()
self.total_length_year_dict[t.start_time().year] += t.length()
self.total_length_year_dict[t.start_time().year] += t.length() # type: ignore
length_range.extend(t.length())
# time.isocalendar()[1] -> week number
weeks[(t.start_time().year, t.start_time().isocalendar()[1])] = 1
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/quantity_range.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Represent a range of pint quantities"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/timezone_adjuster.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""TimezoneAdjuster"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/track.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Create and maintain info about a given activity track (corresponding to one GPX file)."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
4 changes: 2 additions & 2 deletions gpxtrackposter/track_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Handle parsing of GPX files and writing/loading of cached data"""

# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down Expand Up @@ -240,7 +240,7 @@ def _merge_tracks(tracks: List[Track]) -> List[Track]:
if last_end_time is None:
merged_tracks.append(t)
else:
dt = (t.start_time() - last_end_time).total_seconds()
dt = int((t.start_time() - last_end_time).total_seconds())
if 0 < dt < 3600:
merged_tracks[-1].append(t)
else:
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/tracks_drawer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Contains the base class TracksDrawer, which other Drawers inherit from."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/units.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Units"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Assorted utility methods for use in creating posters."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/value_range.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Represent a range of numerical values"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/xy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Represent x,y values with properly overloaded operations."""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion gpxtrackposter/year_range.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Represent a range of years, with ability to update based on a track"""
# Copyright 2016-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bump_year.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright 2018-2023 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2018-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_copyright.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright 2018-2023 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2018-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_readme.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

# Copyright 2018-2023 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2018-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ extension-pkg-whitelist=

[pylint.MESSAGES CONTROL]
disable=
invalid-name,
missing-docstring,
too-many-positional-arguments,
use-yield-from,

#enable=E,W
jobs=1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright 2016-2021 Florian Pigorsch & Contributors. All rights reserved.
# Copyright 2016-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
ConfTest
"""
# Copyright 2022-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2022-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_calendar_drawer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for CalendarDrawer
"""
# Copyright 2022-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2022-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_circular_drawer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for CircularDrawer
"""
# Copyright 2021-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2021-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for entry point cli.py
"""
# Copyright 2021-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2021-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_github_drawer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for GithubDrawer
"""
# Copyright 2022-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2022-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_grid_drawer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for GridDrawer
"""
# Copyright 2022-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2022-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_heatmap_drawer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for HeatmapDrawer
"""
# Copyright 2021-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2021-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_localization.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for Localization
"""
# Copyright 2021-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2021-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_quantity_range.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for QuantityRange
"""
# Copyright 2021-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2021-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_timezone_adjuster.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for TimezoneAdjuster
"""
# Copyright 2020-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2020-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_track.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for Track
"""
# Copyright 2022-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2022-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_track_loader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for TrackLoader
"""
# Copyright 2020-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2020-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
3 changes: 2 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
Several tests for utils
"""
# Copyright 2018-2023 Florian Pigorsch & Contributors. All rights reserved.

# Copyright 2018-2025 Florian Pigorsch & Contributors. All rights reserved.
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file.
Expand Down
Loading

0 comments on commit 88d7117

Please sign in to comment.