-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable and configure importlinter #896
base: main
Are you sure you want to change the base?
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