Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 31, 2023
1 parent 834b232 commit 1c1d4a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 15 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
args: ["--py38-plus"]

- repo: https://github.com/psf/black
rev: 22.12.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
args: ["--target-version", "py36"]
args: ["--target-version", "py38"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
Expand All @@ -28,13 +28,20 @@ repos:
- id: python-check-blanket-noqa

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

ci:
autoupdate_schedule: quarterly
2 changes: 0 additions & 2 deletions splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def split_gpx(filename, max_distance, max2, dry_run):
edit_made = False

for track in gpx.tracks:

new_track = copy.deepcopy(track)
new_track.segments = []
# print(track.name, track.type)
Expand All @@ -117,7 +116,6 @@ def split_gpx(filename, max_distance, max2, dry_run):
else:
less_than = distance_less_than(point, last_point, max2)
if less_than:

# d = point.distance_2d(last_point)
# if d < max_distance: # metres

Expand Down

0 comments on commit 1c1d4a7

Please sign in to comment.