ophyd-async 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.codecov.yml +2 -2
  2. ophyd_async-0.3.0/.copier-answers.yml +17 -0
  3. ophyd_async-0.3.0/.devcontainer/devcontainer.json +55 -0
  4. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.git-blame-ignore-revs +2 -0
  5. ophyd_async-0.3.0/.github/CONTRIBUTING.md +27 -0
  6. ophyd_async-0.3.0/.github/actions/install_requirements/action.yml +34 -0
  7. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.github/dependabot.yml +8 -0
  8. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.github/pages/make_switcher.py +8 -12
  9. ophyd_async-0.3.0/.github/workflows/_check.yml +27 -0
  10. ophyd_async-0.3.0/.github/workflows/_dist.yml +36 -0
  11. ophyd-async-0.2.0/.github/workflows/docs.yml → ophyd_async-0.3.0/.github/workflows/_docs.yml +16 -15
  12. ophyd_async-0.3.0/.github/workflows/_pypi.yml +17 -0
  13. ophyd_async-0.3.0/.github/workflows/_release.yml +32 -0
  14. ophyd_async-0.3.0/.github/workflows/_test.yml +62 -0
  15. ophyd_async-0.3.0/.github/workflows/_tox.yml +22 -0
  16. ophyd_async-0.3.0/.github/workflows/ci.yml +59 -0
  17. ophyd_async-0.3.0/.github/workflows/periodic.yml +13 -0
  18. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.gitignore +6 -2
  19. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.pre-commit-config.yaml +9 -9
  20. ophyd_async-0.3.0/Dockerfile +18 -0
  21. {ophyd-async-0.2.0/src/ophyd_async.egg-info → ophyd_async-0.3.0}/PKG-INFO +31 -70
  22. ophyd_async-0.3.0/README.md +33 -0
  23. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/_templates/custom-class-template.rst +1 -0
  24. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/conf.py +57 -42
  25. {ophyd-async-0.2.0/docs/user → ophyd_async-0.3.0/docs}/examples/epics_demo.py +1 -0
  26. ophyd_async-0.3.0/docs/examples/foo_detector.py +82 -0
  27. ophyd_async-0.3.0/docs/explanations/decisions/0001-record-architecture-decisions.md +18 -0
  28. ophyd_async-0.3.0/docs/explanations/decisions/0002-switched-to-python-copier-template.md +28 -0
  29. {ophyd-async-0.2.0/docs/developer → ophyd_async-0.3.0/docs}/explanations/decisions/0003-ophyd-async-migration.rst +1 -1
  30. ophyd_async-0.3.0/docs/explanations/decisions/COPYME +19 -0
  31. ophyd_async-0.3.0/docs/explanations/decisions.md +12 -0
  32. ophyd_async-0.3.0/docs/explanations/design-goals.rst +57 -0
  33. ophyd_async-0.3.0/docs/explanations/event-loop-choice.rst +52 -0
  34. ophyd_async-0.3.0/docs/explanations/flyscanning.rst +29 -0
  35. ophyd_async-0.3.0/docs/explanations.md +10 -0
  36. ophyd_async-0.3.0/docs/how-to/choose-interfaces-for-devices.md +15 -0
  37. ophyd_async-0.3.0/docs/how-to/compound-devices.rst +44 -0
  38. ophyd_async-0.3.0/docs/how-to/contribute.md +2 -0
  39. {ophyd-async-0.2.0/docs/user → ophyd_async-0.3.0/docs}/how-to/make-a-simple-device.rst +8 -7
  40. ophyd_async-0.3.0/docs/how-to/make-a-standard-detector.rst +64 -0
  41. ophyd_async-0.3.0/docs/how-to/write-tests-for-devices.rst +63 -0
  42. ophyd_async-0.3.0/docs/how-to.md +10 -0
  43. ophyd_async-0.3.0/docs/index.md +56 -0
  44. {ophyd-async-0.2.0/docs/user → ophyd_async-0.3.0/docs}/reference/api.rst +1 -1
  45. ophyd_async-0.3.0/docs/reference.md +12 -0
  46. ophyd_async-0.3.0/docs/tutorials/installation.md +42 -0
  47. {ophyd-async-0.2.0/docs/user → ophyd_async-0.3.0/docs}/tutorials/using-existing-devices.rst +15 -5
  48. ophyd_async-0.3.0/docs/tutorials.md +10 -0
  49. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/pyproject.toml +30 -39
  50. ophyd_async-0.3.0/src/ophyd_async/__init__.py +3 -0
  51. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/_version.py +2 -2
  52. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/core/__init__.py +52 -19
  53. ophyd_async-0.3.0/src/ophyd_async/core/_providers.py +68 -0
  54. ophyd_async-0.3.0/src/ophyd_async/core/async_status.py +142 -0
  55. ophyd_async-0.3.0/src/ophyd_async/core/detector.py +341 -0
  56. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/core/device.py +91 -50
  57. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/core/device_save_loader.py +96 -23
  58. ophyd_async-0.3.0/src/ophyd_async/core/flyer.py +85 -0
  59. ophyd_async-0.3.0/src/ophyd_async/core/mock_signal_backend.py +82 -0
  60. ophyd_async-0.3.0/src/ophyd_async/core/mock_signal_utils.py +145 -0
  61. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/core/signal.py +225 -58
  62. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/core/signal_backend.py +8 -5
  63. ophyd-async-0.2.0/src/ophyd_async/core/sim_signal_backend.py → ophyd_async-0.3.0/src/ophyd_async/core/soft_signal_backend.py +51 -49
  64. ophyd_async-0.3.0/src/ophyd_async/core/standard_readable.py +261 -0
  65. ophyd_async-0.3.0/src/ophyd_async/core/utils.py +197 -0
  66. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/_backend/_aioca.py +42 -44
  67. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/_backend/_p4p.py +96 -52
  68. ophyd_async-0.3.0/src/ophyd_async/epics/_backend/common.py +25 -0
  69. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/__init__.py +8 -4
  70. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/aravis.py +63 -0
  71. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/controllers/__init__.py +5 -0
  72. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/controllers/ad_sim_controller.py +1 -1
  73. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/controllers/aravis_controller.py +78 -0
  74. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/controllers/kinetix_controller.py +49 -0
  75. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/controllers/pilatus_controller.py +61 -0
  76. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/controllers/vimba_controller.py +66 -0
  77. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/drivers/__init__.py +6 -0
  78. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/drivers/ad_base.py +8 -12
  79. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/drivers/aravis_driver.py +38 -0
  80. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/drivers/kinetix_driver.py +27 -0
  81. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/drivers/pilatus_driver.py +21 -0
  82. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/drivers/vimba_driver.py +63 -0
  83. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/kinetix.py +46 -0
  84. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/pilatus.py +45 -0
  85. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/single_trigger_det.py +14 -6
  86. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/utils.py +2 -12
  87. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/vimba.py +43 -0
  88. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/writers/_hdffile.py +21 -7
  89. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/writers/hdf_writer.py +32 -17
  90. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/writers/nd_file_hdf.py +40 -0
  91. ophyd_async-0.3.0/src/ophyd_async/epics/areadetector/writers/nd_plugin.py +38 -0
  92. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/demo/__init__.py +75 -49
  93. ophyd_async-0.3.0/src/ophyd_async/epics/motion/motor.py +99 -0
  94. ophyd_async-0.3.0/src/ophyd_async/epics/pvi/__init__.py +3 -0
  95. ophyd_async-0.3.0/src/ophyd_async/epics/pvi/pvi.py +318 -0
  96. ophyd_async-0.3.0/src/ophyd_async/epics/signal/__init__.py +15 -0
  97. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/signal/signal.py +26 -9
  98. ophyd_async-0.3.0/src/ophyd_async/log.py +130 -0
  99. ophyd_async-0.3.0/src/ophyd_async/panda/__init__.py +38 -0
  100. ophyd_async-0.3.0/src/ophyd_async/panda/_common_blocks.py +49 -0
  101. ophyd_async-0.3.0/src/ophyd_async/panda/_hdf_panda.py +48 -0
  102. ophyd_async-0.3.0/src/ophyd_async/panda/_panda_controller.py +37 -0
  103. ophyd_async-0.3.0/src/ophyd_async/panda/_trigger.py +39 -0
  104. ophyd_async-0.3.0/src/ophyd_async/panda/_utils.py +15 -0
  105. ophyd_async-0.3.0/src/ophyd_async/panda/writers/__init__.py +3 -0
  106. ophyd_async-0.3.0/src/ophyd_async/panda/writers/_hdf_writer.py +220 -0
  107. ophyd_async-0.3.0/src/ophyd_async/panda/writers/_panda_hdf_file.py +58 -0
  108. ophyd_async-0.3.0/src/ophyd_async/plan_stubs/__init__.py +13 -0
  109. ophyd_async-0.3.0/src/ophyd_async/plan_stubs/ensure_connected.py +22 -0
  110. ophyd_async-0.3.0/src/ophyd_async/plan_stubs/fly.py +149 -0
  111. ophyd_async-0.3.0/src/ophyd_async/protocols.py +126 -0
  112. ophyd_async-0.3.0/src/ophyd_async/sim/__init__.py +11 -0
  113. ophyd_async-0.3.0/src/ophyd_async/sim/demo/__init__.py +3 -0
  114. ophyd_async-0.3.0/src/ophyd_async/sim/demo/sim_motor.py +103 -0
  115. ophyd_async-0.3.0/src/ophyd_async/sim/pattern_generator.py +318 -0
  116. ophyd_async-0.3.0/src/ophyd_async/sim/sim_pattern_detector_control.py +55 -0
  117. ophyd_async-0.3.0/src/ophyd_async/sim/sim_pattern_detector_writer.py +34 -0
  118. ophyd_async-0.3.0/src/ophyd_async/sim/sim_pattern_generator.py +37 -0
  119. {ophyd-async-0.2.0 → ophyd_async-0.3.0/src/ophyd_async.egg-info}/PKG-INFO +31 -70
  120. ophyd_async-0.3.0/src/ophyd_async.egg-info/SOURCES.txt +197 -0
  121. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async.egg-info/requires.txt +6 -7
  122. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/conftest.py +44 -4
  123. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/core/test_async_status.py +58 -6
  124. ophyd_async-0.3.0/tests/core/test_device.py +222 -0
  125. ophyd_async-0.3.0/tests/core/test_device_collector.py +156 -0
  126. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/core/test_device_save_loader.py +43 -11
  127. ophyd_async-0.3.0/tests/core/test_flyer.py +237 -0
  128. ophyd_async-0.3.0/tests/core/test_mock_signal_backend.py +357 -0
  129. ophyd_async-0.3.0/tests/core/test_signal.py +252 -0
  130. ophyd-async-0.2.0/tests/core/test_sim.py → ophyd_async-0.3.0/tests/core/test_soft_signal_backend.py +21 -26
  131. ophyd_async-0.3.0/tests/core/test_standard_readable.py +221 -0
  132. ophyd_async-0.3.0/tests/core/test_utils.py +260 -0
  133. ophyd_async-0.3.0/tests/core/test_watchable_async_status.py +196 -0
  134. ophyd_async-0.3.0/tests/epics/_backend/test_common.py +52 -0
  135. ophyd_async-0.3.0/tests/epics/areadetector/test_aravis.py +153 -0
  136. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_controllers.py +9 -26
  137. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_drivers.py +5 -5
  138. ophyd_async-0.3.0/tests/epics/areadetector/test_kinetix.py +125 -0
  139. ophyd_async-0.3.0/tests/epics/areadetector/test_pilatus.py +72 -0
  140. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_scans.py +38 -43
  141. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_single_trigger_det.py +7 -11
  142. ophyd_async-0.3.0/tests/epics/areadetector/test_vimba.py +137 -0
  143. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_writers.py +6 -6
  144. ophyd_async-0.3.0/tests/epics/demo/test_demo.py +365 -0
  145. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/demo/test_demo_ad_sim_detector.py +84 -45
  146. ophyd_async-0.3.0/tests/epics/motion/test_motor.py +189 -0
  147. ophyd_async-0.3.0/tests/epics/test_pvi.py +146 -0
  148. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/test_records.db +29 -0
  149. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/test_signals.py +219 -50
  150. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/panda/db/panda.db +72 -0
  151. ophyd_async-0.3.0/tests/panda/test_hdf_panda.py +168 -0
  152. ophyd_async-0.3.0/tests/panda/test_panda_connect.py +180 -0
  153. ophyd_async-0.3.0/tests/panda/test_panda_controller.py +53 -0
  154. ophyd_async-0.3.0/tests/panda/test_panda_utils.py +73 -0
  155. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/panda/test_table.py +1 -1
  156. ophyd_async-0.3.0/tests/panda/test_trigger.py +33 -0
  157. ophyd_async-0.3.0/tests/panda/test_writer.py +208 -0
  158. ophyd_async-0.3.0/tests/plan_stubs/test_fly.py +376 -0
  159. ophyd_async-0.3.0/tests/protocols/test_protocols.py +35 -0
  160. ophyd_async-0.3.0/tests/sim/__init__.py +0 -0
  161. ophyd_async-0.3.0/tests/sim/conftest.py +15 -0
  162. ophyd_async-0.3.0/tests/sim/demo/__init__.py +0 -0
  163. ophyd_async-0.3.0/tests/sim/demo/test_sim_motor.py +54 -0
  164. ophyd_async-0.3.0/tests/sim/test_pattern_generator.py +72 -0
  165. ophyd_async-0.3.0/tests/sim/test_sim_detector.py +52 -0
  166. ophyd_async-0.3.0/tests/sim/test_sim_writer.py +45 -0
  167. ophyd_async-0.3.0/tests/sim/test_streaming_plan.py +45 -0
  168. ophyd_async-0.3.0/tests/test_log.py +88 -0
  169. ophyd-async-0.2.0/.devcontainer/Dockerfile +0 -37
  170. ophyd-async-0.2.0/.devcontainer/devcontainer.json +0 -47
  171. ophyd-async-0.2.0/.github/CONTRIBUTING.rst +0 -34
  172. ophyd-async-0.2.0/.github/actions/install_requirements/action.yml +0 -58
  173. ophyd-async-0.2.0/.github/workflows/code.yml +0 -141
  174. ophyd-async-0.2.0/.github/workflows/docs_clean.yml +0 -43
  175. ophyd-async-0.2.0/.github/workflows/linkcheck.yml +0 -27
  176. ophyd-async-0.2.0/README.rst +0 -72
  177. ophyd-async-0.2.0/docs/developer/explanations/decisions/0001-record-architecture-decisions.rst +0 -26
  178. ophyd-async-0.2.0/docs/developer/explanations/decisions/0002-switched-to-pip-skeleton.rst +0 -35
  179. ophyd-async-0.2.0/docs/developer/explanations/decisions.rst +0 -17
  180. ophyd-async-0.2.0/docs/developer/how-to/build-docs.rst +0 -38
  181. ophyd-async-0.2.0/docs/developer/how-to/contribute.rst +0 -1
  182. ophyd-async-0.2.0/docs/developer/how-to/lint.rst +0 -41
  183. ophyd-async-0.2.0/docs/developer/how-to/make-release.rst +0 -16
  184. ophyd-async-0.2.0/docs/developer/how-to/pin-requirements.rst +0 -74
  185. ophyd-async-0.2.0/docs/developer/how-to/run-tests.rst +0 -12
  186. ophyd-async-0.2.0/docs/developer/how-to/static-analysis.rst +0 -8
  187. ophyd-async-0.2.0/docs/developer/how-to/test-container.rst +0 -25
  188. ophyd-async-0.2.0/docs/developer/how-to/update-tools.rst +0 -16
  189. ophyd-async-0.2.0/docs/developer/index.rst +0 -64
  190. ophyd-async-0.2.0/docs/developer/reference/standards.rst +0 -142
  191. ophyd-async-0.2.0/docs/developer/tutorials/dev-install.rst +0 -60
  192. ophyd-async-0.2.0/docs/index.rst +0 -29
  193. ophyd-async-0.2.0/docs/user/explanations/docs-structure.rst +0 -18
  194. ophyd-async-0.2.0/docs/user/how-to/run-container.rst +0 -15
  195. ophyd-async-0.2.0/docs/user/index.rst +0 -64
  196. ophyd-async-0.2.0/docs/user/tutorials/installation.rst +0 -43
  197. ophyd-async-0.2.0/src/ophyd_async/__init__.py +0 -6
  198. ophyd-async-0.2.0/src/ophyd_async/core/_providers.py +0 -35
  199. ophyd-async-0.2.0/src/ophyd_async/core/async_status.py +0 -96
  200. ophyd-async-0.2.0/src/ophyd_async/core/detector.py +0 -199
  201. ophyd-async-0.2.0/src/ophyd_async/core/flyer.py +0 -299
  202. ophyd-async-0.2.0/src/ophyd_async/core/standard_readable.py +0 -72
  203. ophyd-async-0.2.0/src/ophyd_async/core/utils.py +0 -104
  204. ophyd-async-0.2.0/src/ophyd_async/epics/areadetector/controllers/__init__.py +0 -4
  205. ophyd-async-0.2.0/src/ophyd_async/epics/areadetector/controllers/pilatus_controller.py +0 -49
  206. ophyd-async-0.2.0/src/ophyd_async/epics/areadetector/drivers/pilatus_driver.py +0 -18
  207. ophyd-async-0.2.0/src/ophyd_async/epics/areadetector/writers/nd_file_hdf.py +0 -39
  208. ophyd-async-0.2.0/src/ophyd_async/epics/areadetector/writers/nd_plugin.py +0 -30
  209. ophyd-async-0.2.0/src/ophyd_async/epics/motion/motor.py +0 -85
  210. ophyd-async-0.2.0/src/ophyd_async/epics/signal/__init__.py +0 -10
  211. ophyd-async-0.2.0/src/ophyd_async/epics/signal/pvi_get.py +0 -22
  212. ophyd-async-0.2.0/src/ophyd_async/panda/__init__.py +0 -22
  213. ophyd-async-0.2.0/src/ophyd_async/panda/panda.py +0 -294
  214. ophyd-async-0.2.0/src/ophyd_async.egg-info/SOURCES.txt +0 -134
  215. ophyd-async-0.2.0/tests/core/test_device.py +0 -107
  216. ophyd-async-0.2.0/tests/core/test_device_collector.py +0 -16
  217. ophyd-async-0.2.0/tests/core/test_flyer.py +0 -186
  218. ophyd-async-0.2.0/tests/core/test_signal.py +0 -120
  219. ophyd-async-0.2.0/tests/core/test_utils.py +0 -13
  220. ophyd-async-0.2.0/tests/epics/demo/test_demo.py +0 -206
  221. ophyd-async-0.2.0/tests/epics/motion/test_motor.py +0 -123
  222. ophyd-async-0.2.0/tests/panda/test_panda.py +0 -126
  223. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.github/pages/index.html +0 -0
  224. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/.mailmap +0 -0
  225. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/LICENSE +0 -0
  226. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/_templates/README +0 -0
  227. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/_templates/custom-module-template.rst +0 -0
  228. {ophyd-async-0.2.0/docs/developer → ophyd_async-0.3.0/docs}/explanations/decisions/0004-repository-structure.rst +0 -0
  229. {ophyd-async-0.2.0/docs/developer → ophyd_async-0.3.0/docs}/explanations/decisions/0005-respect-black-line-length.rst +0 -0
  230. {ophyd-async-0.2.0/docs/developer → ophyd_async-0.3.0/docs}/explanations/decisions/0006-procedural-device-definitions.rst +0 -0
  231. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/genindex.rst +0 -0
  232. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/images/bluesky_ophyd_epics_devices_logo.svg +0 -0
  233. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/images/bluesky_ophyd_logo.svg +0 -0
  234. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/docs/images/ophyd_favicon.svg +0 -0
  235. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/setup.cfg +0 -0
  236. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/__main__.py +0 -0
  237. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/__init__.py +0 -0
  238. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/_backend/__init__.py +0 -0
  239. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/writers/__init__.py +0 -0
  240. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/areadetector/writers/_hdfdataset.py +0 -0
  241. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/demo/demo_ad_sim_detector.py +0 -0
  242. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/demo/mover.db +0 -0
  243. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/demo/sensor.db +0 -0
  244. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/motion/__init__.py +0 -0
  245. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async/epics/signal/_epics_transport.py +0 -0
  246. /ophyd-async-0.2.0/src/ophyd_async/panda/table.py → /ophyd_async-0.3.0/src/ophyd_async/panda/_table.py +0 -0
  247. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async.egg-info/dependency_links.txt +0 -0
  248. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async.egg-info/entry_points.txt +0 -0
  249. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/src/ophyd_async.egg-info/top_level.txt +0 -0
  250. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/__init__.py +0 -0
  251. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/areadetector/test_utils.py +0 -0
  252. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/epics/motion/__init__.py +0 -0
  253. {ophyd-async-0.2.0 → ophyd_async-0.3.0}/tests/test_cli.py +0 -0
@@ -5,10 +5,10 @@ coverage:
5
5
  project:
6
6
  default:
7
7
  target: auto
8
- threshold: 0.1%
8
+ threshold: 1%
9
9
  patch:
10
10
  default:
11
- target: auto
11
+ target: 90
12
12
  threshold: 1%
13
13
  github_checks:
14
14
  annotations: false
@@ -0,0 +1,17 @@
1
+ # Changes here will be overwritten by Copier
2
+ _commit: 2.1.0
3
+ _src_path: gh:DiamondLightSource/python-copier-template
4
+ author_email: tom.cobb@diamond.ac.uk
5
+ author_name: Tom Cobb
6
+ component_owner: ''
7
+ description: Asynchronous Bluesky hardware abstraction code, compatible with control
8
+ systems like EPICS and Tango
9
+ distribution_name: ophyd-async
10
+ docker: false
11
+ docs_type: sphinx
12
+ git_platform: github.com
13
+ github_org: bluesky
14
+ package_name: ophyd_async
15
+ pypi: true
16
+ repo_name: ophyd-async
17
+ type_checker: pyright
@@ -0,0 +1,55 @@
1
+ // For format details, see https://containers.dev/implementors/json_reference/
2
+ {
3
+ "name": "Python 3 Developer Container",
4
+ "build": {
5
+ "dockerfile": "../Dockerfile",
6
+ "target": "developer"
7
+ },
8
+ "remoteEnv": {
9
+ // Allow X11 apps to run inside the container
10
+ "DISPLAY": "${localEnv:DISPLAY}"
11
+ },
12
+ "customizations": {
13
+ "vscode": {
14
+ // Set *default* container specific settings.json values on container create.
15
+ "settings": {
16
+ "python.defaultInterpreterPath": "/venv/bin/python",
17
+ "python.testing.unittestEnabled": false,
18
+ "python.testing.pytestEnabled": true,
19
+ "editor.formatOnSave": true,
20
+ "editor.codeActionsOnSave": {
21
+ "source.organizeImports": "explicit"
22
+ },
23
+ "[python]": {
24
+ "editor.defaultFormatter": "charliermarsh.ruff"
25
+ }
26
+ },
27
+ // Add the IDs of extensions you want installed when the container is created.
28
+ "extensions": [
29
+ "ms-python.python",
30
+ "github.vscode-github-actions",
31
+ "tamasfe.even-better-toml",
32
+ "redhat.vscode-yaml",
33
+ "ryanluker.vscode-coverage-gutters",
34
+ "charliermarsh.ruff",
35
+ "ms-azuretools.vscode-docker"
36
+ ]
37
+ }
38
+ },
39
+ "features": {
40
+ // Some default things like git config
41
+ "ghcr.io/devcontainers/features/common-utils:2": {
42
+ "upgradePackages": false
43
+ }
44
+ },
45
+ "runArgs": [
46
+ // Allow the container to access the host X11 display and EPICS CA
47
+ "--net=host",
48
+ // Make sure SELinux does not disable with access to host filesystems like tmp
49
+ "--security-opt=label=disable"
50
+ ],
51
+ // Mount the parent as /workspaces so we can pip install peers as editable
52
+ "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind",
53
+ // After the container is created, install the python project in editable form
54
+ "postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' && pre-commit install"
55
+ }
@@ -6,3 +6,5 @@
6
6
  20e1b14b541a0331109158c77bc319248be28989
7
7
  # Use isort to sort imports
8
8
  881a35b43584103ca572b6f4e472dd8b6fd6ea87
9
+ # Replace flake8 and mypy with ruff and pyrite
10
+ e2f8317e7584e4de788c2b39e5b5edaa98c1bc9e
@@ -0,0 +1,27 @@
1
+ # Contribute to the project
2
+
3
+ Contributions and issues are most welcome! All issues and pull requests are
4
+ handled through [GitHub](https://github.com/bluesky/ophyd-async/issues). Also, please check for any existing issues before
5
+ filing a new one. If you have a great idea but it involves big changes, please
6
+ file a ticket before making a pull request! We want to make sure you don't spend
7
+ your time coding something that might not fit the scope of the project.
8
+
9
+ ## Issue or Discussion?
10
+
11
+ Github also offers [discussions](https://github.com/bluesky/ophyd-async/discussions) as a place to ask questions and share ideas. If
12
+ your issue is open ended and it is not obvious when it can be "closed", please
13
+ raise it as a discussion instead.
14
+
15
+ ## Code Coverage
16
+
17
+ While 100% code coverage does not make a library bug-free, it significantly
18
+ reduces the number of easily caught bugs! Please make sure coverage remains the
19
+ same or is improved by a pull request!
20
+
21
+ ## Developer Information
22
+
23
+ It is recommended that developers use a [vscode devcontainer](https://code.visualstudio.com/docs/devcontainers/containers). This repository contains configuration to set up a containerized development environment that suits its own needs.
24
+
25
+ This project was created using the [Diamond Light Source Copier Template](https://github.com/DiamondLightSource/python-copier-template) for Python projects.
26
+
27
+ For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/2.1.0/how-to.html).
@@ -0,0 +1,34 @@
1
+ name: Install requirements
2
+ description: Install a version of python then call pip install and report what was installed
3
+ inputs:
4
+ python-version:
5
+ description: Python version to install, default is from Dockerfile
6
+ default: "dev"
7
+ pip-install:
8
+ description: Parameters to pass to pip install
9
+ default: "$([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e .[dev]"
10
+
11
+ runs:
12
+ using: composite
13
+ steps:
14
+ - name: Get version of python
15
+ run: |
16
+ PYTHON_VERSION="${{ inputs.python-version }}"
17
+ if [ $PYTHON_VERSION == "dev" ]; then
18
+ PYTHON_VERSION=$(sed -n "s/ARG PYTHON_VERSION=//p" Dockerfile)
19
+ fi
20
+ echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
21
+ shell: bash
22
+
23
+ - name: Setup python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: ${{ env.PYTHON_VERSION }}
27
+
28
+ - name: Install packages
29
+ run: pip install ${{ inputs.pip-install }}
30
+ shell: bash
31
+
32
+ - name: Report what was installed
33
+ run: pip freeze
34
+ shell: bash
@@ -9,8 +9,16 @@ updates:
9
9
  directory: "/"
10
10
  schedule:
11
11
  interval: "weekly"
12
+ groups:
13
+ actions:
14
+ patterns:
15
+ - "*"
12
16
 
13
17
  - package-ecosystem: "pip"
14
18
  directory: "/"
15
19
  schedule:
16
20
  interval: "weekly"
21
+ groups:
22
+ dev-dependencies:
23
+ patterns:
24
+ - "*"
@@ -24,7 +24,7 @@ def get_sorted_tags_list() -> List[str]:
24
24
  return report_output(stdout, "Tags list")
25
25
 
26
26
 
27
- def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[str]:
27
+ def get_versions(ref: str, add: Optional[str]) -> List[str]:
28
28
  """Generate the file containing the list of all GitHub Pages builds."""
29
29
  # Get the directories (i.e. builds) from the GitHub Pages branch
30
30
  try:
@@ -36,9 +36,6 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
36
36
  # Add and remove from the list of builds
37
37
  if add:
38
38
  builds.add(add)
39
- if remove:
40
- assert remove in builds, f"Build '{remove}' not in {sorted(builds)}"
41
- builds.remove(remove)
42
39
 
43
40
  # Get a sorted list of tags
44
41
  tags = get_sorted_tags_list()
@@ -58,9 +55,12 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
58
55
 
59
56
  def write_json(path: Path, repository: str, versions: str):
60
57
  org, repo_name = repository.split("/")
58
+ pages_url = f"https://{org}.github.io"
59
+ if repo_name != f"{org}.github.io":
60
+ # Only add the repo name if it isn't the source for the org pages site
61
+ pages_url += f"/{repo_name}"
61
62
  struct = [
62
- dict(version=version, url=f"https://{org}.github.io/{repo_name}/{version}/")
63
- for version in versions
63
+ {"version": version, "url": f"{pages_url}/{version}/"} for version in versions
64
64
  ]
65
65
  text = json.dumps(struct, indent=2)
66
66
  print(f"JSON switcher:\n{text}")
@@ -69,16 +69,12 @@ def write_json(path: Path, repository: str, versions: str):
69
69
 
70
70
  def main(args=None):
71
71
  parser = ArgumentParser(
72
- description="Make a versions.txt file from gh-pages directories"
72
+ description="Make a versions.json file from gh-pages directories"
73
73
  )
74
74
  parser.add_argument(
75
75
  "--add",
76
76
  help="Add this directory to the list of existing directories",
77
77
  )
78
- parser.add_argument(
79
- "--remove",
80
- help="Remove this directory from the list of existing directories",
81
- )
82
78
  parser.add_argument(
83
79
  "repository",
84
80
  help="The GitHub org and repository name: ORG/REPO",
@@ -91,7 +87,7 @@ def main(args=None):
91
87
  args = parser.parse_args(args)
92
88
 
93
89
  # Write the versions file
94
- versions = get_versions("origin/gh-pages", args.add, args.remove)
90
+ versions = get_versions("origin/gh-pages", args.add)
95
91
  write_json(args.output, args.repository, versions)
96
92
 
97
93
 
@@ -0,0 +1,27 @@
1
+ on:
2
+ workflow_call:
3
+ outputs:
4
+ branch-pr:
5
+ description: The PR number if the branch is in one
6
+ value: ${{ jobs.pr.outputs.branch-pr }}
7
+
8
+ jobs:
9
+ pr:
10
+ runs-on: "ubuntu-latest"
11
+ outputs:
12
+ branch-pr: ${{ steps.script.outputs.result }}
13
+ steps:
14
+ - uses: actions/github-script@v7
15
+ id: script
16
+ if: github.event_name == 'push'
17
+ with:
18
+ script: |
19
+ const prs = await github.rest.pulls.list({
20
+ owner: context.repo.owner,
21
+ repo: context.repo.repo,
22
+ head: context.repo.owner + ':${{ github.ref_name }}'
23
+ })
24
+ if (prs.data.length) {
25
+ console.log(`::notice ::Skipping CI on branch push as it is already run in PR #${prs.data[0]["number"]}`)
26
+ return prs.data[0]["number"]
27
+ }
@@ -0,0 +1,36 @@
1
+ on:
2
+ workflow_call:
3
+
4
+ jobs:
5
+ build:
6
+ runs-on: "ubuntu-latest"
7
+
8
+ steps:
9
+ - name: Checkout
10
+ uses: actions/checkout@v4
11
+ with:
12
+ # Need this to get version number from last tag
13
+ fetch-depth: 0
14
+
15
+ - name: Build sdist and wheel
16
+ run: >
17
+ export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) &&
18
+ pipx run build
19
+
20
+ - name: Upload sdist and wheel as artifacts
21
+ uses: actions/upload-artifact@v4
22
+ with:
23
+ name: dist
24
+ path: dist
25
+
26
+ - name: Check for packaging errors
27
+ run: pipx run twine check --strict dist/*
28
+
29
+ - name: Install produced wheel
30
+ uses: ./.github/actions/install_requirements
31
+ with:
32
+ pip-install: dist/*.whl
33
+
34
+ - name: Test module --version works using the installed wheel
35
+ # If more than one module in src/ replace with module name to test
36
+ run: python -m $(ls --hide='*.egg-info' src | head -1) --version
@@ -1,38 +1,39 @@
1
- name: Docs CI
2
-
3
1
  on:
4
- push:
5
- pull_request:
2
+ workflow_call:
6
3
 
7
4
  jobs:
8
- docs:
9
- if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
5
+ build:
10
6
  runs-on: ubuntu-latest
11
7
 
12
8
  steps:
13
9
  - name: Avoid git conflicts when tag and branch pushed at same time
14
- if: startsWith(github.ref, 'refs/tags')
10
+ if: github.ref_type == 'tag'
15
11
  run: sleep 60
16
12
 
17
13
  - name: Checkout
18
- uses: actions/checkout@v3
14
+ uses: actions/checkout@v4
19
15
  with:
20
16
  # Need this to get version number from last tag
21
17
  fetch-depth: 0
22
18
 
23
19
  - name: Install system packages
24
- # Can delete this if you don't use graphviz in your docs
25
20
  run: sudo apt-get install graphviz
26
21
 
27
22
  - name: Install python packages
28
23
  uses: ./.github/actions/install_requirements
29
- with:
30
- requirements_file: requirements-dev-3.x.txt
31
- install_options: -e .[dev]
32
24
 
33
25
  - name: Build docs
34
26
  run: tox -e docs
35
27
 
28
+ - name: Remove environment.pickle
29
+ run: rm build/html/.doctrees/environment.pickle
30
+
31
+ - name: Upload built docs artifact
32
+ uses: actions/upload-artifact@v4
33
+ with:
34
+ name: docs
35
+ path: build
36
+
36
37
  - name: Sanitize ref name for docs version
37
38
  run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV
38
39
 
@@ -43,11 +44,11 @@ jobs:
43
44
  run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json
44
45
 
45
46
  - name: Publish Docs to gh-pages
46
- if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
47
+ if: github.ref_type == 'tag' || github.ref_name == 'main'
47
48
  # We pin to the SHA, not the tag, for security reasons.
48
49
  # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
49
- uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
50
+ uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
50
51
  with:
51
52
  github_token: ${{ secrets.GITHUB_TOKEN }}
52
53
  publish_dir: .github/pages
53
- keep_files: true
54
+ keep_files: true
@@ -0,0 +1,17 @@
1
+ on:
2
+ workflow_call:
3
+
4
+ jobs:
5
+ upload:
6
+ runs-on: ubuntu-latest
7
+ environment: release
8
+
9
+ steps:
10
+ - name: Download dist artifact
11
+ uses: actions/download-artifact@v4
12
+ with:
13
+ name: dist
14
+ path: dist
15
+
16
+ - name: Publish to PyPI using trusted publishing
17
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,32 @@
1
+ on:
2
+ workflow_call:
3
+
4
+ jobs:
5
+ artifacts:
6
+ runs-on: ubuntu-latest
7
+
8
+ steps:
9
+ - name: Download artifacts
10
+ uses: actions/download-artifact@v4
11
+ with:
12
+ merge-multiple: true
13
+
14
+ - name: Zip up docs
15
+ run: |
16
+ set -vxeuo pipefail
17
+ if [ -d html ]; then
18
+ mv html $GITHUB_REF_NAME
19
+ zip -r docs.zip $GITHUB_REF_NAME
20
+ rm -rf $GITHUB_REF_NAME
21
+ fi
22
+
23
+ - name: Create GitHub Release
24
+ # We pin to the SHA, not the tag, for security reasons.
25
+ # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
26
+ uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
27
+ with:
28
+ prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
29
+ files: "*"
30
+ generate_release_notes: true
31
+ env:
32
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,62 @@
1
+ on:
2
+ workflow_call:
3
+ inputs:
4
+ python-version:
5
+ type: string
6
+ description: The version of python to install
7
+ required: true
8
+ runs-on:
9
+ type: string
10
+ description: The runner to run this job on
11
+ required: true
12
+ secrets:
13
+ CODECOV_TOKEN:
14
+ required: true
15
+
16
+ env:
17
+ # https://github.com/pytest-dev/pytest/issues/2042
18
+ PY_IGNORE_IMPORTMISMATCH: "1"
19
+
20
+ jobs:
21
+ run:
22
+ runs-on: ${{ inputs.runs-on }}
23
+
24
+ steps:
25
+ - name: Checkout
26
+ uses: actions/checkout@v4
27
+ with:
28
+ # Need this to get version number from last tag
29
+ fetch-depth: 0
30
+
31
+ - if: inputs.python-version == 'dev'
32
+ name: Install dev versions of python packages
33
+ uses: ./.github/actions/install_requirements
34
+
35
+ - if: inputs.python-version == 'dev'
36
+ name: Write the requirements as an artifact
37
+ run: pip freeze --exclude-editable > /tmp/dev-requirements.txt
38
+
39
+ - if: inputs.python-version == 'dev'
40
+ name: Upload dev-requirements.txt
41
+ uses: actions/upload-artifact@v4
42
+ with:
43
+ name: dev-requirements
44
+ path: /tmp/dev-requirements.txt
45
+
46
+ - if: inputs.python-version != 'dev'
47
+ name: Install latest versions of python packages
48
+ uses: ./.github/actions/install_requirements
49
+ with:
50
+ python-version: ${{ inputs.python-version }}
51
+ pip-install: ".[dev]"
52
+
53
+ - name: Run tests
54
+ run: tox -e tests
55
+
56
+ - name: Upload coverage to Codecov
57
+ uses: codecov/codecov-action@v4
58
+ with:
59
+ name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
60
+ files: cov.xml
61
+ env:
62
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,22 @@
1
+ on:
2
+ workflow_call:
3
+ inputs:
4
+ tox:
5
+ type: string
6
+ description: What to run under tox
7
+ required: true
8
+
9
+
10
+ jobs:
11
+ run:
12
+ runs-on: "ubuntu-latest"
13
+
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Install python packages
19
+ uses: ./.github/actions/install_requirements
20
+
21
+ - name: Run tox
22
+ run: tox -e ${{ inputs.tox }}
@@ -0,0 +1,59 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ check:
9
+ uses: ./.github/workflows/_check.yml
10
+
11
+ lint:
12
+ needs: check
13
+ if: needs.check.outputs.branch-pr == ''
14
+ uses: ./.github/workflows/_tox.yml
15
+ with:
16
+ tox: pre-commit,type-checking
17
+
18
+ test:
19
+ needs: check
20
+ if: needs.check.outputs.branch-pr == ''
21
+ strategy:
22
+ matrix:
23
+ runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
24
+ python-version: ["3.10","3.11"] # 3.12 should be added when p4p is updated
25
+ include:
26
+ # Include one that runs in the dev environment
27
+ - runs-on: "ubuntu-latest"
28
+ python-version: "dev"
29
+ fail-fast: false
30
+ uses: ./.github/workflows/_test.yml
31
+ with:
32
+ runs-on: ${{ matrix.runs-on }}
33
+ python-version: ${{ matrix.python-version }}
34
+ secrets:
35
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36
+
37
+ docs:
38
+ needs: check
39
+ if: needs.check.outputs.branch-pr == ''
40
+ uses: ./.github/workflows/_docs.yml
41
+
42
+ dist:
43
+ needs: check
44
+ if: needs.check.outputs.branch-pr == ''
45
+ uses: ./.github/workflows/_dist.yml
46
+
47
+ pypi:
48
+ if: github.ref_type == 'tag'
49
+ needs: dist
50
+ uses: ./.github/workflows/_pypi.yml
51
+ permissions:
52
+ id-token: write
53
+
54
+ release:
55
+ if: github.ref_type == 'tag'
56
+ needs: [dist, docs]
57
+ uses: ./.github/workflows/_release.yml
58
+ permissions:
59
+ contents: write
@@ -0,0 +1,13 @@
1
+ name: Periodic
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ # Run weekly to check URL links still resolve
7
+ - cron: "0 8 * * WED"
8
+
9
+ jobs:
10
+ linkcheck:
11
+ uses: ./.github/workflows/_tox.yml
12
+ with:
13
+ tox: docs build -- -b linkcheck
@@ -66,7 +66,7 @@ venv*
66
66
  # further build artifacts
67
67
  lockfiles/
68
68
 
69
- # Origional File
69
+ # Original File
70
70
  *.pyc
71
71
  *.swp
72
72
  *.bak
@@ -80,8 +80,12 @@ lockfiles/
80
80
  .ipynb_checkpoints
81
81
 
82
82
  # generated docs
83
- docs/*/generated
83
+ docs/generated
84
84
  docs/savefig
85
85
 
86
86
  # generated version number
87
87
  ophyd_async/_version.py
88
+
89
+
90
+ # ruff cache
91
+ .ruff_cache/
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v4.4.0
3
+ rev: v4.5.0
4
4
  hooks:
5
5
  - id: check-added-large-files
6
6
  - id: check-yaml
@@ -8,16 +8,16 @@ repos:
8
8
 
9
9
  - repo: local
10
10
  hooks:
11
- - id: black
12
- name: Run black
13
- stages: [commit]
11
+ - id: ruff
12
+ name: lint with ruff
14
13
  language: system
15
- entry: black --check --diff
14
+ entry: ruff check --force-exclude
16
15
  types: [python]
16
+ require_serial: true
17
17
 
18
- - id: flake8
19
- name: Run flake8
20
- stages: [commit]
18
+ - id: ruff-format
19
+ name: format with ruff
21
20
  language: system
22
- entry: flake8
21
+ entry: ruff format --force-exclude
23
22
  types: [python]
23
+ require_serial: true
@@ -0,0 +1,18 @@
1
+ # The devcontainer should use the developer target and run as root with podman
2
+ # or docker with user namespaces.
3
+ ARG PYTHON_VERSION=3.11
4
+ FROM python:${PYTHON_VERSION} as developer
5
+
6
+ # Allow Qt 6 (pyside6) UI to work in the container - also see apt-get below
7
+ ENV MPLBACKEND=QtAgg
8
+
9
+ # Add any system dependencies for the developer/build environment here
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ graphviz \
12
+ libxcb-cursor0 \
13
+ qt6-base-dev \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Set up a virtual environment and put it in PATH
17
+ RUN python -m venv /venv
18
+ ENV PATH=/venv/bin:$PATH