Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: replacing pipfile by uv and some previous script
  • Loading branch information
MarcChen committed Nov 13, 2025
commit 01f82a2e1bdd9ab76f22b2ea8f5d643c5952744a
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-json
- id: check-toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.3
hooks:
# Run the linter
- id: ruff
args: [--fix]
# Run the formatter
- id: ruff-format
44 changes: 0 additions & 44 deletions MyWhooshMonitor.ps1

This file was deleted.

11 changes: 0 additions & 11 deletions Pipfile

This file was deleted.

Binary file removed apple-script/MyWhoosh2Garmin-AS.scpt
Binary file not shown.
44 changes: 0 additions & 44 deletions apple-script/README.md

This file was deleted.

47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[project]
name = "mywhoosh2garmin"
version = "0.1.0"
description = "Upload MyWhoosh activities to Garmin Connect with proper fixes"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"pydantic-settings==2.11.0",
"pydantic==2.12.4",
"garth==0.5.2",
"fit-tool==0.9.13",
"playwright==1.55.0",
]

[project.optional-dependencies]
dev = [
"pre-commit>=3.5.0",
"ruff>=0.14.3",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.ruff]
line-length = 88
target-version = "py313"

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__.py

[tool.ruff.lint.isort]
known-first-party = ["mywhoosh2garmin"]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
Loading