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

Hooks for user-defined actions #505

Closed
iamdefinitelyahuman opened this issue May 8, 2020 · 0 comments · Fixed by #584
Closed

Hooks for user-defined actions #505

iamdefinitelyahuman opened this issue May 8, 2020 · 0 comments · Fixed by #584
Labels
Discussion Under discussion - not yet ready for implementation enhancement New feature or request

Comments

@iamdefinitelyahuman
Copy link
Member

Overview

It should be possible to automatically perform certain tasks prior to executing specific Brownie functionality, e.g. before compiling, before running the test suite, before running a script, etc

Specification

TBD. I'm picturing a special file brownie-hooks.py in the root folder of a project. It can expect specifically named methods brownie_xxxxx that, if they exist, are called prior to certain actions. Can function similarly to pytest hooks where argument names tell which information to feed in.

@iamdefinitelyahuman iamdefinitelyahuman added enhancement New feature or request Discussion Under discussion - not yet ready for implementation labels May 8, 2020
@iamdefinitelyahuman iamdefinitelyahuman added this to the Brownie 1.9.0 milestone May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Under discussion - not yet ready for implementation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant