Skip to content

Add license, README and lint tooling - #2

Merged
luukvisser merged 1 commit into
mainfrom
chore/license-readme-tooling
Aug 6, 2026
Merged

luukvisser merged 1 commit into
mainfrom
chore/license-readme-tooling

Conversation

@luukvisser

@luukvisser luukvisser commented Aug 6, 2026 •

Copy link
Copy Markdown
Owner

Targets main, now that #1 is merged. The diff is exactly the ten files below.

License

Upstream ToonSoftwareCollective/tscClock publishes no license file, so its code is technically all-rights-reserved. The LICENSE here is MIT covering this fork's changes, with an explicit notice that the grant cannot extend to the inherited upstream code. Three sibling repos in that org (nlalert, toonmqtt, ToonRooter) are MIT — worth asking TSC to do the same for tscClock, which would make this clean.

README

Covers both tile layouts, install, both settings screens with default tables, how the Waze fetch and refresh logic works, differences from upstream, and known limitations (undocumented Waze endpoint, coordinates leaving the device, missing drawables/clock.svg, Dutch-only UI).

Versioning

Checked against upstream: this fork branched from upstream HEAD (af304ec, Dec 2022) at version 1.0.1, and upstream has not moved since. Everything added since — centred layout, day-on-date row, Waze travel times — is additive and backwards compatible; absent settings keys fall back to defaults, nothing was removed. 1.1.0 is the correct semver bump. The README notes the one caveat: sharing upstream's numbering line means a hypothetical upstream 1.1.0 would be indistinguishable.

Tooling

Ported verbatim from luukvisser/toon-esphomeair: .pre-commit-config.yaml, .prettierrc.json, .gitattributes and .github/workflows/pr-lint.yml. Added .prettierignore (the workflow already referenced it) and .gitignore, both excluding .claude/.

Verified locally: the exact prettier command from the workflow passes, and the non-QML pre-commit hooks pass. They fixed a trailing space in Changelog.txt and a missing final newline in version.txt — version.txt is now 1.1.0\n, matching toon-esphomeair, which the ToonStore handles fine.

The QML files are not reformatted in this PR. qmlformat would rewrite all four substantially, and that diff can only be validated on a real Toon, so it belongs in its own change. CI only checks QML files touched by a PR, so this one passes as-is; the first future PR touching a .qml will need it formatted.

🤖 Generated with Claude Code

Adds project documentation and the same formatting/lint setup used in
toon-esphomeair:

- LICENSE: MIT for this fork, with a notice that upstream
  ToonSoftwareCollective/tscClock declares no license of its own, so the
  grant cannot cover the code inherited from it.
- README.md: what the tile shows, install, both settings screens, how the
  Waze fetch works, differences from upstream and the versioning rationale
  for 1.1.0.
- pre-commit + PR Lint workflow: prettier on JSON/YAML/Markdown,
  pyside6-qmlformat/qmllint on QML, plus whitespace and line-ending hooks.
- .gitattributes normalises to LF; .gitignore/.prettierignore exclude .claude/.

version.txt and Changelog.txt pick up the trailing-newline and
trailing-whitespace fixes from the new hooks; no content change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@luukvisser
luukvisser changed the base branch from claude/align-time-date-block-HPN3c to main August 6, 2026 14:17
@luukvisser
luukvisser merged commit 9db433e into main Aug 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant