bluesky / ophyd-async

Hardware abstraction for bluesky written using asyncio
https://blueskyproject.io/ophyd-async
BSD 3-Clause "New" or "Revised" License
11 stars 26 forks source link

Add import-linter #611

Open coretl opened 1 month ago

coretl commented 1 month ago

To avoid making circular imports it would be good to make some rules and add a linter as per https://github.com/DiamondLightSource/mx-bluesky/pull/568 but with the config in a TOML file.

The rules:

Acceptance Criteria

stan-dot commented 14 hours ago

I assume that we want core to be independent now.

should plan_stubs be generic though? separate tango and epics plan stubs?

coretl commented 10 hours ago

should plan_stubs be generic though? separate tango and epics plan stubs?

Hmm, interesting point, in fastcs we do try/catch imports of epics and tango, and epics works even without the relevant transport, but tango doesn't. This will work at the moment but we might find this breaks in the future.

@abbiemery thoughts?