Skip to content
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

refactoring: driver listing #2281

Merged
merged 2 commits into from
Sep 15, 2019
Merged

refactoring: driver listing #2281

merged 2 commits into from
Sep 15, 2019

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Sep 10, 2019

  • easy access to plugins (drivers or verifiers)
  • enables mypy for api methods
  • standardize entry point naming molecule.driver is prefered to molecule_driver.

Introduces mypy so we can do better type checking on our upcoming API.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
@ssbarnea ssbarnea marked this pull request as ready for review September 14, 2019 10:42
@ssbarnea ssbarnea changed the title WIP: api rework for drivers refactoring: driver listing Sep 14, 2019
- easy access to plugins (drivers or verifiers)
- enables mypy for api methods
- simplified driver plugin loading (based on verifiers approach)

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
@ssbarnea ssbarnea added the bump label Sep 14, 2019
@ssbarnea ssbarnea added this to the 3.0 milestone Sep 14, 2019
Copy link
Contributor

@decentral1se decentral1se left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments, it's looking good.

@@ -22,30 +22,20 @@
from molecule import api


def test_api_drivers():
def test_api_molecule_drivers_as_attributes():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def test_api_molecule_drivers_as_attributes():
def test_api_drivers_as_attributes():

molecule/api.py Show resolved Hide resolved
@ssbarnea ssbarnea merged commit 9d116a8 into ansible:master Sep 15, 2019
@ssbarnea ssbarnea added feature and removed .bump labels Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants