Skip to content
This repository has been archived by the owner on Mar 1, 2018. It is now read-only.

Cleanup and Dockerfile missing file #57

Closed
wants to merge 3 commits into from
Closed

Cleanup and Dockerfile missing file #57

wants to merge 3 commits into from

Conversation

michelpereira
Copy link
Contributor

Cleanup in setup and added a missing file to copy on Dockerfile

Michel Pereira added 2 commits June 15, 2017 19:42
Did a cosmetic cleanup on setup to not have so much empty lines
The Dockerfile was missing config.ini.example file, changed the script
to add it
Copy link
Collaborator

@cuducos cuducos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @michelpereira – thanks for spotting that and opening the PR. I highlighted some changes in inline comments: in general I would accept the PR adding COPY config.ini.example to the task of building the container, but some style changes you made are the main issue I'd like to discuss before merging this. What do you think?

COPY requirements.txt ./
COPY setup ./

COPY requirements.txt config.ini.example setup rosie.py ./
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to avoid multiple tasks in a single line/command – if something is broken (eg missing file) it's way easier to find out what's wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

import pip
from shutil import copyfile


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following PEP8 I'm against removing this line. It's a subjective interpretation, but I think the function calls are the main part of this file – ie I'd suggest a two lines separation as PEP8 suggests for top-level function/class definitions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@@ -1,9 +1,7 @@
#!/usr/bin/env python3

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following PEP8 I'm against removing this line. It's a subjective interpretation, but I think the blank line separates the logic here (shebang from import section).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@jtemporal
Copy link
Collaborator

Hey @michelpereira thanks for this PR, would you mind addressing the comments @cuducos made so we can aprove and merge this? I would really like that ;)

@michelpereira
Copy link
Contributor Author

I was traveling, will follow up with this pull request.

@michelpereira
Copy link
Contributor Author

Do I need to close this pull request and open a new one with the proposed changes?

@cuducos
Copy link
Collaborator

cuducos commented Jul 17, 2017

Do I need to close this pull request and open a new one with the proposed changes?

No need for that, just commit and push changes to this same branch and the novelties will automagically be in this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants