Commit graph

3290 commits

Author SHA1 Message Date
Julian Stirling
83a4b72507 Start writing tests for the version strings 2025-07-14 17:11:53 +01:00
Julian Stirling
608c4bd16f Expose version as thing property and via thing state so it ends up in metadata. 2025-07-14 17:11:53 +01:00
Julian Stirling
1dd0db888d Starting to create version reading code 2025-07-14 17:11:53 +01:00
Julian Stirling
d19d44ba4f Remove unused complex functionality from settings_manager.py. 2025-07-14 17:11:53 +01:00
Julian Stirling
816b6fc82b Merge branch 'test-logging' into 'v3'
Test logging

See merge request openflexure/openflexure-microscope-server!325
2025-07-14 09:04:46 +00:00
Julian Stirling
dd8c97e0b6 Merge branch 'contributing-docstring-fix' into 'v3'
Fix example docstring example in CONTRIBUTING.md

See merge request openflexure/openflexure-microscope-server!324
2025-07-14 08:32:42 +00:00
Julian Stirling
fab5fdfca2 Improve log filtering and logging error handling. Adding more logging tests. 2025-07-13 15:17:11 +01:00
Julian Stirling
ea73e44b01 Start adding tests for the loging configuration. 2025-07-13 14:28:55 +01:00
Julian Stirling
26b893b38c Fix example docstring example in CONTRIBUTING.md 2025-07-13 11:09:54 +00:00
Julian Stirling
18e5f80105 Merge branch 'update-readme-and-contributing' into 'v3'
Update README to point at CONTRIBUTING and make contributing link to site,...

See merge request openflexure/openflexure-microscope-server!322
2025-07-11 17:58:17 +00:00
Julian Stirling
cef3c9f40d Apply suggestions from code review of branch update-readme-and-contributing
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
2025-07-11 16:14:03 +00:00
Julian Stirling
08aaaa6fe1 Complete a first pass of updated contributing guidelines. 2025-07-11 15:30:02 +01:00
Julian Stirling
7b5ce1d165 Update README to point at CONTRIBUTING and make contributing link to site, then give repository specifics. 2025-07-11 12:35:39 +01:00
Julian Stirling
31ed7dfc69 Merge branch 'better-docstrings' into 'v3'
Better docstrings

Closes #479 and #239

See merge request openflexure/openflexure-microscope-server!320
2025-07-11 11:16:27 +00:00
Julian Stirling
c68f0515f5 Apply suggestions from code review of branch better-docstrings
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-07-11 07:26:26 +00:00
Julian Stirling
f91582c9eb Apply suggestions from code review of branch better-docstrings
Co-authored-by: Richard Bowman <richard.bowman@cantab.net>
2025-07-10 23:31:34 +00:00
Julian Stirling
7e6017f648 Get codespell passing and add it as a CI job. 2025-07-11 00:16:25 +01:00
Julian Stirling
e33fecaef0 Documentation of python magic class methods 2025-07-10 16:46:10 +01:00
Julian Stirling
864ca91e5c Add docstrings to all public package 2025-07-10 15:29:10 +01:00
Julian Stirling
14359e73bb Add public method docstrings. 2025-07-10 15:12:28 +01:00
Julian Stirling
1bbbfeef0f Add docstrings to public methods 2025-07-10 14:04:48 +01:00
Julian Stirling
a30b726b91 Class docstrings 2025-07-10 13:27:41 +01:00
Julian Stirling
11a1fd7f85 Move ThingSetting and ThingProperty docstrings under the definition. 2025-07-10 10:43:05 +01:00
Julian Stirling
12df8c9072 Add extra options to Pydoctor CI command 2025-07-10 10:07:33 +01:00
Julian Stirling
2cb4003835 Add module level docstrings. 2025-07-10 09:24:50 +01:00
Julian Stirling
80beeea07b Add punctuation to docstrings 2025-07-10 09:24:50 +01:00
Julian Stirling
4dc41bb008 Single line summaries of docstrings 2025-07-10 09:24:49 +01:00
Julian Stirling
35d47fe3ed Starting docstring on the same lines as the quotations 2025-07-10 09:24:49 +01:00
Julian Stirling
be6a6ca6fe No starting docstrings with This 2025-07-10 09:24:49 +01:00
Julian Stirling
f51dae7b3a Doc strings to imperative mood 2025-07-10 09:24:49 +01:00
Julian Stirling
dceb640c77 Add documentation job to the CI. 2025-07-10 09:24:49 +01:00
Julian Stirling
a84a916719 Restructured text fixes so that pydoctor would return without an error 2025-07-09 23:59:08 +01:00
Julian Stirling
58b056988a Merge branch 'pass-portal-to-stop' into 'v3'
Stop streams to ensure that server exits gracefully.

See merge request openflexure/openflexure-microscope-server!316
2025-07-09 21:55:24 +00:00
Julian Stirling
cd6eaf7be7 Apply suggestions from code review of branch pass-portal-to-stop 2025-07-09 21:19:55 +00:00
Julian Stirling
177cb2eef7 Stop allowing integration tests to fail now graceful exit works 2025-07-09 16:53:35 +01:00
Julian Stirling
d9fd54696a Monkey patch Uvicorn's handle_exit function to stop streams
Before the uvicorn handle_exit function is called kill the camera
streams.
2025-07-09 16:53:08 +01:00
Julian Stirling
421efa2866 Pass blocking portal to mjpeg_stream.stop()
This was updated in LabThings-FastAPI v0.0.10, but wasn't changed
as we moved over.
2025-07-09 16:53:08 +01:00
Julian Stirling
e53405f1ef Merge branch 'python-integration-tests' into 'v3'
Python integration tests

See merge request openflexure/openflexure-microscope-server!319
2025-07-09 15:51:07 +00:00
Julian Stirling
72c4dbee32 Apply suggestions from code review of branch python-integration-tests 2025-07-09 15:13:25 +00:00
Julian Stirling
76c21e42f7 Improve integration test startup with polling 2025-07-09 13:59:16 +01:00
Julian Stirling
4e54d9ac06 Tidy integration test code and docstrings 2025-07-09 13:59:16 +01:00
Julian Stirling
190766cd1c Add CI job for integration tests 2025-07-09 13:59:16 +01:00
Julian Stirling
bd96585825 Create failing test for graceful shutdown. 2025-07-09 13:59:16 +01:00
Julian Stirling
234f7a7621 Start writing python-integration test that starts simulation server 2025-07-09 11:58:02 +01:00
Julian Stirling
ea785cb844 Merge branch 'new-thing-setting-syntax' into 'v3'
Update Thing Settings and import statments for LabThings-FastAPI 0.0.10

Closes #302 and #362

See merge request openflexure/openflexure-microscope-server!296
2025-07-07 18:29:01 +00:00
Julian Stirling
a8323c4f58 Remove section of docstring that no longer applies 2025-07-07 17:58:23 +00:00
Julian Stirling
f3ec5a445a Update labthings-fastapi version in pyproject.toml 2025-07-07 15:25:16 +01:00
Julian Stirling
35d6e45892 Refactor and simplify how picamera settings work 2025-07-07 15:25:16 +01:00
Julian Stirling
df8a9d0e93 Renaming picamera context manager to make it clear it is different from using the picamera itself as a context manager 2025-07-07 15:25:16 +01:00
Julian Stirling
52a80ef66b And adjust for new as lt import 2025-07-07 15:25:14 +01:00