ac8b14f7f2
uwwvb: Avoid creating lists in get_am_bcd.
...
& remove unused bcd_weights.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-27 11:58:03 -05:00
9f26e319da
uwwvb: Improve checking of marks & zeros.
...
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-27 11:54:58 -05:00
54d0b4f0f2
testuwwvb: Add (failing) test of spurious MARKs
2025-08-27 11:41:21 -05:00
7a66438ec9
remove more traces of codecov
2025-08-27 11:24:23 -05:00
906cd45d32
testwwvb: better(?) alternative
...
avoids typing.cast & pyrefly: ignore
2025-08-27 09:17:50 -05:00
bf0b767a74
Makefile: Default to running all type checkers.
...
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-27 08:39:30 -05:00
70e0c6fc54
testcli: Kill the last Any.
2025-08-27 08:38:41 -05:00
399fa8618f
actions: Check with 3 type checkers
...
you will certainly not regret checking with 3 type checkers.
2025-08-26 21:47:40 -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
af3defa722
wwvbtk: pyrefly can't handle these
2025-08-26 21:46:11 -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
b007518fb0
wwvbtk: Tighten type specification of validate_colors.
...
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-26 21:23:20 -05:00
7c0c875ea0
general: use 'TYPE_CHECKING = False'
2025-08-26 21:23:20 -05:00
aed190a9a8
pre-commit: Add pyupgrade.
...
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-08-26 21:23:20 -05:00
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