Enable and configure importlinter#896
Conversation
|
|
I'd propose moving whatever is currently in # in tiled.settings
class Settings(BaseSettings):
...
# extended in tiled.server.settings
class ServerSettings(Settings):
...Presumably this import is allowing client.from_app, for a same process client/server? |
|
Excellent. I've added some commits to:
With that, the remaining violations were all to do with, as you said, launching a server on a background thread from the client: building an app and configuring its settings. (Because the settings are all server settings, I don't see any reason to split that up or generalize it.) So I've added those two as exemptions in the importlinter configuration. What do you think? |
|
The remaining issue is that We test that none of the above are imported until corresponding structures are used, because importing the full scipy stack is slow, and this is especially felt when doing quick CLI things. |
Validation for pre-commit and github ci to catch incoming errors.
Currently exposes several places where this contract is broken!
Fixes #864
Checklist