Commit graph

653 commits

Author SHA1 Message Date
14c182717c
Merge pull request #150 from jepler/pre-commit-ci-update-config 2025-08-26 09:06:53 -05:00
8790b17da6
Merge pull request #153 from jepler/use-dataclass 2025-08-26 09:06:36 -05:00
d480ca9980 wwvb: removeprefix is a str method now 🎉.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-26 09:02:19 -05:00
665c7d8fac wwvb: Switch from NamedTuple to Dataclass.
Deprecate the `min` property and add the `minute` property.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-26 09:02:19 -05:00
pre-commit-ci[bot]
ab13d58672
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.12.4 → v0.12.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.4...v0.12.10)
2025-08-25 20:55:47 +00:00
2f664d254e
Merge pull request #152 from jepler/coverage-patch-subprocess 2025-08-10 20:07:51 -05:00
f24393e840 this is already excluded 2025-08-10 17:16:35 -05:00
5d484b6eb4 Use coverage 7.10.x "patch=subprocess"
.. so we don't need our own code to make subprocess calling
work.
2025-08-10 17:16:28 -05:00
92e7ff0e3a
Merge pull request #151 from jepler/dunder_new_typing 2025-08-07 11:01:43 -05:00
6114e8ddd4 these methods return Self 2025-08-07 10:54:12 -05:00
cfd49c9cbe work around a pyrefly type checking limitation 2025-08-07 10:51:27 -05:00
6be262e2f4 explain what this test is doing, I couldn't figure it out 2025-08-07 10:51:27 -05:00
6afca61f10 Makefile: Add rules to run pyright & pyrefly 2025-08-07 10:51:27 -05:00
3d796afff1 updateiers: Add a type annotation 2025-08-07 10:21:19 -05:00
711b85ff55 Work around a pyrefly bug 2025-08-07 10:21:19 -05:00
e2ec0d9069 Further typing fixes
wwvbpy is now free of type errors under pyright.
2025-08-07 10:21:19 -05:00
jepler (github actions cron)
aae5cce3be update iersdata 2025-08-02 10:05:31 +00:00
1f6dba6a59
Merge pull request #149 from jepler/dunder_new_typing
WWVBMinute: correct typing of __new__ method
2025-07-26 19:45:45 -05:00
9210edfd70 WWVBMinute: correct typing of __new__ method 2025-07-26 14:22:08 -05:00
6027e274e8
Merge pull request #141 from jepler/pre-commit-ci-update-config 2025-07-24 14:31:43 -05:00
b405a2dcb9
Merge pull request #148 from jepler/upgrade-coverage 2025-07-24 14:31:14 -05:00
acdb968619 require a newer coverage 2025-07-24 14:04:47 -05:00
9c76dc1a33 coverage: move settings into pyproject 2025-07-24 14:03:21 -05:00
10eb0e67d3 Ensure branch coverage of some if main blocks. 2025-07-24 14:03:13 -05:00
pre-commit-ci[bot]
eae4e778de
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.12.1 → v0.12.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.1...v0.12.4)
2025-07-21 20:49:06 +00:00
jepler (github actions cron)
6ef71b2837 update iersdata 2025-07-02 10:05:59 +00:00
c15b2802ef
Merge pull request #147 from jepler/update-pre-commit 2025-06-28 06:55:23 +02:00
f3b865fafa Update ruff
New ruff is very opinionated about positional arguments that
can take a boolean type. As a result, the signatures of the
following functions have changed:
 * WWVBMinute: ls, ly are keyword-only
 * next_minute, previous_minute: newut1 and newls are keyword-only
 * from_datetime: newut1, newls, and old_time are keyword-only
2025-06-28 06:50:08 +02:00
jepler (github actions cron)
e7abe54821 update iersdata 2025-06-02 10:06:09 +00:00
08e4217636
Merge pull request #142 from jepler/use-upstream-type-hints
Remove adafruit_datetime.pyi
2025-05-27 10:44:39 +02:00
7b0548071f Remove adafruit_datetime.pyi
and depend on correct typing info (+ override to use it). The correct
typing info won't exist until a release of adafruit_datetime with
https://github.com/adafruit/Adafruit_CircuitPython_datetime/pull/33 is
made, likely soon.
2025-05-27 10:42:25 +02:00
7137105b18
Merge pull request #146 from jepler/restore-typechecking 2025-05-21 16:49:58 +02:00
b859900b9b type check the tests too 2025-05-21 16:46:07 +02:00
1bf978445e actually check types with mypy again 2025-05-21 16:42:34 +02:00
5afa43e2c4
Merge pull request #145 from jepler/unpin-sphinx 2025-05-20 15:00:28 +02:00
4e3e36b53d let's readthedocs 2025-05-20 14:52:27 +02:00
ad89db7a31 Doc improvements 2025-05-20 14:49:10 +02:00
882f9d0635 unpin sphinx 2025-05-20 13:52:59 +02:00
adabec27dd
Merge pull request #144 from jepler/remove-codeql-badge 2025-05-20 13:52:09 +02:00
270780ab84 remove codeql badge, we no longer use it 2025-05-20 13:51:43 +02:00
142971bd17
Merge pull request #143 from jepler/split-mypy 2025-05-20 13:50:56 +02:00
703824ff0e split out mypy workflow 2025-05-20 13:44:02 +02:00
jepler (github actions cron)
92a5afdfd5 update iersdata 2025-05-02 16:06:12 +00:00
19a2a23c21
Merge pull request #139 from jepler/pre-commit-ci-update-config 2025-05-02 16:11:26 +02:00
pre-commit-ci[bot]
a23e0fbaaf
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.11.5 → v0.11.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.5...v0.11.7)
2025-04-28 20:23:30 +00:00
c9a0b64195
Merge pull request #140 from jepler/more-error-detection 2025-04-24 18:35:12 +02:00
ec68ed225f Additional error checking in from_timecode_am
the change from using reversed() is because the pos sequence is now
traversed twice.
2025-04-24 18:31:34 +02:00
3fc237f466 Additional invalid AM timecode tests (failing) 2025-04-24 18:30:53 +02:00
497164e84d
Merge pull request #138 from jepler/test-314
new python versions ahoy
2025-04-21 09:58:24 +02:00
6b57582d3e
Merge pull request #137 from jepler/dst-enum
Use an enum for DST status
2025-04-21 09:18:11 +02:00