doorstop-dev / doorstop

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

Error in validation hooks documentation #635

Closed juanvaccarezza closed 9 months ago

juanvaccarezza commented 9 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 9 months ago

@juanvaccarezza thanks! A PR would be appreciated.

jivaccarezza commented 9 months ago

@juanvaccarezza thanks! A PR would be appreciated.

Perfect I'll do it from this new account!