doorstop-dev / doorstop

Requirements management using version control.
https://doorstop.readthedocs.io
Other
465 stars 126 forks source link

Error in validation hooks documentation #635

Closed juanvaccarezza closed 6 months ago

juanvaccarezza commented 6 months ago

Hi, The function signature is incorrect.

In the example says: (rest of the code omitted for simplicity)

...
def check_document(document):
....
def check_item(item):
....

but in order to work should be:

...
def check_document(document, tree):
...
def check_item(item, document, tree):
...

Best regards, Juan

I can generate a PR if you like.

jacebrowning commented 6 months ago

@juanvaccarezza thanks! A PR would be appreciated.

jivaccarezza commented 6 months ago

@juanvaccarezza thanks! A PR would be appreciated.

Perfect I'll do it from this new account!