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

Can we just provide the schema path in the plugin? #1

Open
benhowes opened this issue Apr 7, 2018 · 0 comments
Open

Can we just provide the schema path in the plugin? #1

benhowes opened this issue Apr 7, 2018 · 0 comments

Comments

@benhowes
Copy link
Member

benhowes commented Apr 7, 2018

see:

schema_path = join(abspath(dirname(__file__)), "schema.yaml")
with open(schema_path, "r") as schema_file:
schema = yaml.load(schema_file)

Can we cut down on the boilerplate in places like this by just passing a string from the hook?

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

No branches or pull requests

1 participant