Skip to content

modloadmsg style fixes#4035

Merged
boegel merged 4 commits intoeasybuilders:developfrom
SethosII:modloadmsg-style-fixes
Jan 18, 2017
Merged

modloadmsg style fixes#4035
boegel merged 4 commits intoeasybuilders:developfrom
SethosII:modloadmsg-style-fixes

Conversation

@SethosII
Copy link
Copy Markdown
Contributor

added new lines at the end of modloadmsg
changed mutliple modloadmsg to one multiline modloadmsg
changed triple quotes to single quotes for single line strings
removed curly braces for variables in modloadmsg
removed unnecessary escaping of $ in modloadmsg

they shouldn't be needed here
changed mutliple modloadmsg to one multiline modloadmsg

added new lines at the end of modloadmsg

changed triple quotes to single quotes for single line strings
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

Thanks a lot for looking into this!

Two minor style issues w.r.t. long lines, but otherwise looks good to go...


modloadmsg = """For improved speed, add 'usejni=t' to the command line of %(name)s tools which support the use of the
compiled jni C code."""
modloadmsg = "For improved speed, add 'usejni=t' to the command line of %(name)s tools which support the use of the compiled jni C code.\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@SethosII lines shouldn't go beyond 120 characters in length; if you want this to be a single line message, we should break it up like:

modloadmsg = "..."
modloadmsg += "...\n"

same applies to the other BBMap easyconfigs

# Be careful and have a message consistent with the generated wrappers
modloadmsg = "nvcc uses g++ as the default host compiler. If you want to use icpc as a host compiler you can use"
modloadmsg += " nvcc_icpc, or nvcc -ccbin=icpc. Likewise, a g++ wrapper called nvcc_g++ has been also created."
modloadmsg = "nvcc uses g++ as the default host compiler. If you want to use icpc as a host compiler you can use nvcc_icpc, or nvcc -ccbin=icpc. Likewise, a g++ wrapper called nvcc_g++ has been also created.\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@SethosII same here, this line is too long, please break it up using modloadmsg +=

@boegel boegel added this to the 3.1.0 milestone Jan 17, 2017
@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 17, 2017

Test report by @boegel
SUCCESS
Build succeeded for 52 out of 52 (52 easyconfigs in this PR)
node2005.delcatty.os - Linux SL 6.8, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz, Python 2.6.6
See https://gist.github.com/a695b0475f6117007c0c6b5190f3ecd3 for a full test report.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 17, 2017

@SethosII looks good to go, other than the two minor style issues

@SethosII
Copy link
Copy Markdown
Contributor Author

I changed the long lines to use multiple modloadmsg.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 18, 2017

lgtm, will merge as soon as Travis gives green light, thanks @SethosII!

@boegel
Copy link
Copy Markdown
Member

boegel commented Jan 18, 2017

Going in, thanks @SethosII!

@boegel boegel merged commit a2dc9d6 into easybuilders:develop Jan 18, 2017
@SethosII SethosII deleted the modloadmsg-style-fixes branch January 18, 2017 09:46
@boegel boegel mentioned this pull request Jan 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants