Skip to content

Commit

Permalink
fix(Hook): Add missing post_gen_setup return var #125 (#126)
Browse files Browse the repository at this point in the history
Return variable "out" was missing from final return option.

closes #125
  • Loading branch information
imAsparky committed Sep 23, 2021
1 parent ede69f3 commit 870a107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hooks/post_gen_project.py
Expand Up @@ -32,8 +32,9 @@ def post_gen_setup(*args, supress_exception=False, cwd=None):
raise Exception(err)
if err and supress_exception:
return out
return None # This return fixes pylint R1710 see
# https://pycodequ.al/docs/pylint-messages/r1710-inconsistent-return-statements.html

return out

finally:
os.chdir(cur_dir)

Expand Down
3 changes: 1 addition & 2 deletions tests/test_bake_project.py
Expand Up @@ -32,8 +32,7 @@ def post_gen_setup(*args, supress_exception=False, cwd=None):
return out

return out
# return None # This return fixes pylint R1710 see
# https://pycodequ.al/docs/pylint-messages/r1710-inconsistent-return-statements.html

finally:
os.chdir(cur_dir)

Expand Down

0 comments on commit 870a107

Please sign in to comment.