Skip to content

Conversation

@vladdoster
Copy link
Contributor

removed redundant logic, removed broken example typo from printl to print, made a simpler chained logic command and fixed odd formatting

I know they seem small, but we use pyslurm in production and its nice to show developers these and they use best conventions. Might as well fix them :)

…ntl to print, made a simpler chained logic command and fixed odd formatting)
@vladdoster
Copy link
Contributor Author

Most of these are visual changes, but some of them are just good practices for python code

@giovtorres
Copy link
Member

Thank you @vladdoster for cleaning this up! These examples definitely need some love. Would you mind running pylint and black over the examples/ directory? 🙏

These tools would lint and format the files approriately.

@giovtorres giovtorres added Documentation Enhancement Community Contribution Contributions from community members labels Feb 1, 2020
@vladdoster
Copy link
Contributor Author

@giovtorres, yes I can do that. Will push to upstream sometime today.

@vladdoster
Copy link
Contributor Author

@giovtorres I updated the tests! The remaining errors are mostly in sjobs relating to line-too-long and I wasn't really sure how to fix it since I am not at work and don't have access to slurm right now to see how it would look.

Started out at ~3 and now pushing 10!

pic-selected-200201-1442-49

Copy link
Member

@giovtorres giovtorres left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@giovtorres giovtorres merged commit c797b75 into PySlurm:master Feb 1, 2020
@vladdoster vladdoster deleted the example_fixes branch February 1, 2020 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Contributions from community members Documentation Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants