Commit graph

86 commits

Author SHA1 Message Date
ca6a076137 Improve coverage & create InvalidContentError 2024-07-18 07:43:21 -05:00
5d1c0799be remove tracemalloc setting, it didn't turn up anything 2024-07-18 07:15:29 -05:00
b29f68db72 attempt to diagnose why a message about an unclosed socket is printed 2024-07-17 22:00:05 -05:00
d16422c452 from_url no longer has a default 2024-07-17 21:50:19 -05:00
2bd84cc2d4 fix coverage & test 2024-07-17 21:40:42 -05:00
ddd9a0e6ab Add command to print info about data sources 2024-07-17 21:18:37 -05:00
30ee684c7d Disable conflicting ruff rule 2024-07-17 21:18:28 -05:00
58b6d4f0aa Document data sources for leap second data 2024-07-17 21:18:21 -05:00
887f6535f2 Fix doc build
Items in the `_env` directory must not be considered
2024-07-17 21:13:36 -05:00
d63d988ce7 fix pypi project name, ow 2024-07-17 14:37:43 -05:00
090a2651b5 Transition to pyproject.toml
and add a documentation link to pypi
2024-07-17 14:30:34 -05:00
5138ad50eb Fix import path when building on RTD 2024-07-16 15:44:01 -05:00
149ef8c3cc get readthedocs working again 2024-07-16 15:37:30 -05:00
5f9f29ab36
Merge pull request #17 from jepler/trivial-typo
punctuate
2024-07-07 17:00:51 -05:00
d6242056a6 punctuate 2024-07-07 17:00:25 -05:00
81133cf1df
Merge pull request #16 from jepler/more-ruff
More ruff fixes
2024-07-07 16:53:19 -05:00
b567f4df28 Enable more ruff checks & fix them 2024-07-07 14:57:16 -05:00
e28f83b676 Enable more ruff "DTZ" & fix them 2024-07-07 14:45:39 -05:00
54bd71ba9c Avoid boolean traps in public APIs
This is an incompatible API change, checked by ruff's "boolean trap"
family of diagnostics.
2024-07-07 14:42:37 -05:00
df6619d770 check types in leapseconddata.py 2024-07-07 14:41:41 -05:00
9d9fe1d0ec use venv in make rules
.. to isolate the testing environment from the user's regular
environment
2024-07-07 14:37:03 -05:00
eee581f943 Enable additional ruff checks 2024-07-07 14:36:42 -05:00
94a58ff95c Move docs to subdirectory 2024-07-07 14:36:27 -05:00
c7490dda10
Merge pull request #15 from jepler/more-ruff
Enable ruff E, F, and D tests
2024-07-07 10:04:58 -05:00
7957a6d5a8 Enable ruff E, F, and D tests
.. with some D tests ignored, especially conflicting ones
2024-07-07 09:44:52 -05:00
80adcfa938
Merge pull request #14 from jepler/commandline-useful
Add a useful commandline program
2024-07-06 16:59:41 -05:00
445e3f1636 Old Python needs annotations
.. as we use the "| None" syntax
2024-07-06 16:38:37 -05:00
19fae768c2 invoke mypy via make during CI 2024-07-06 16:37:09 -05:00
000f1d33c1 Add type annotations 2024-07-06 16:36:16 -05:00
2041853907 requires click to run the tests 2024-07-06 16:32:14 -05:00
4541b73a1f Document the commandline program 2024-07-06 16:31:06 -05:00
24d1b5dfaa Add a useful commandline program 2024-07-06 11:35:41 -05:00
ed0ebaad67
Merge pull request #13 from jepler/change-leapsecondinfo-type
LeapSecondInfo: use dataclass instead of NamedTuple
2024-06-05 21:11:54 -05:00
0ad03844d7 improve LeapSecondInfo docs a bit more 2024-06-05 21:09:19 -05:00
82e164ce85 LeapSecondInfo: use dataclass instead of NamedTuple
The documentation workaround for the dataclass was worse than the
benefit from being able to tuple-unpack it.
2024-06-05 21:06:28 -05:00
d2a348cf38
Merge pull request #12 from jepler/fix-deprecated-utcnow
Avoid deprecated utcnow
2024-05-19 17:54:19 -05:00
0061c6dd7d bump some actions versions 2024-05-19 18:25:52 -04:00
aa0974fa79 update pre-commit 2024-05-19 18:25:52 -04:00
4f95df4203 avoid deprecated utcnow 2024-05-19 18:25:52 -04:00
976e0b056b remove python 3.8 mentions 2024-05-19 18:15:13 -04:00
da0be88798 Update versions to test 2024-05-19 18:15:03 -04:00
1e142aad17
Merge pull request #11 from jepler/leapsecond-from-url
fix the default url for LeapSecondData.from_url
2023-10-03 11:38:03 -05:00
505281ff3c
fix the default url for LeapSecondData.from_url 2023-10-03 11:33:53 -05:00
7ddc70b716
Merge pull request #10 from jepler/fix-release
Fix release process
2023-10-03 09:27:52 -05:00
b57bbbb041
Drop codecov 2023-10-03 09:22:02 -05:00
33bbbdf029
Update python versions in setup.cfg 2023-10-03 09:19:27 -05:00
99b18f1436
Fix python-version in release.yml 2023-10-03 09:19:17 -05:00
9f044a0400
Merge pull request #9 from jepler/leapsecond-urls
ietf no longer serves leapseconddata, use alternate sources
2023-10-03 09:09:28 -05:00
7724600eb8
update pre-commit workflow versions 2023-10-03 09:06:48 -05:00
b5e7f3eff6
tune when mypy is run 2023-10-03 09:03:03 -05:00