Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

fix(Hook): Add missing post_gen_setup return var #125 #126

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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