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
Get connector name from configuration, #1845
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1845 +/- ##
=======================================
Coverage 99.33% 99.33%
=======================================
Files 80 80
Lines 4834 4834
=======================================
Hits 4802 4802
Misses 32 32
Continue to review full report at Codecov.
|
367c9a0
to
b3b1a87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the naming change.
The imports stuff highlights some inconsistencies in our imports sorting. Maybe we should add isort to or pre-commit-hook.
Wait we didn't do this already?? 🤣 I would suggest reverting the import ordering stuff and then opening a new PR using isort / pre-commit or something we can all run? |
Sure and as I mentioned in the PR, they got sorted automatically with VSCode settings |
Yeah we don't but it seems that our version of black and isort are fighting in the pre-commit haha |
There's a new(ish) flag in isort to be black compatible. |
We use black and isort in Dask. Seem to play nicely together these days. |
Description
Fixes #1844
This PR replaces all the hardcoded names with
self.config.get("name", <connector name>)
to allow users to specify the name of the connector. It also adds a section in our connectors page telling users how to use two connectors in the same opsdroid instance since I had to search for a while about how to do this until I remembered that Jacob had mentioned something like that in one of our channels 😆I'm also using the import organize imports setting in VSCode so some imports were automatically changed. Let me know if you would rather me revert these changes.
Status
READY |
UNDER DEVELOPMENT|ON HOLDType of change
How Has This Been Tested?
Checklist: