Commit graph

18 commits

Author SHA1 Message Date
906cd45d32 testwwvb: better(?) alternative
avoids typing.cast & pyrefly: ignore
2025-08-27 09:17:50 -05:00
70e0c6fc54 testcli: Kill the last Any. 2025-08-27 08:38:41 -05:00
7e7294fc23 testwwvb: Allow redundant cast for pyrefly
mypy requires this cast, and pyright at least doesn't object.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-26 21:46:30 -05:00
03a8c79b5c testuwwvb: Additional annotation helps pyrefly 2025-08-26 21:45:04 -05:00
f4544d8dd6 tests: Remove 'unittest.main'
This seems redundant and makes pyrefly choke.
2025-08-26 21:44:53 -05:00
9c78eedf2f general: improve typing
Almost rid of 'Any' types!
2025-08-26 21:44: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
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
6be262e2f4 explain what this test is doing, I couldn't figure it out 2025-08-07 10:51:27 -05:00
10eb0e67d3 Ensure branch coverage of some if main blocks. 2025-07-24 14:03:13 -05: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
3fc237f466 Additional invalid AM timecode tests (failing) 2025-04-24 18:30:53 +02:00
pre-commit-ci[bot]
ea42fb57ab [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-19 22:50:42 +00:00
3ed08f1879 Update copyright years 2024-07-14 15:07:47 -05:00
6de292a092 Use combine(tzinfo=) not combine().replace(tzinfo=)
this was added in 3.6, no reason not to use it
2024-07-14 14:34:50 -05:00
f6ac384455 Put coverage ignore patterns in coveragerc 2024-07-14 14:34:33 -05:00
93bf28a4cc move wwvbgen testcases inside the new test/ directory 2024-07-14 11:52:42 -05:00
87b6236416 Move tests out of distribution 2024-07-14 11:49:02 -05:00