Closed ulfalizer closed 5 years ago
Planning to do the same to what_changed.py
, but there's a bunch of pylint
stuff that needs to be fixed in it first.
All checks are passing now.
Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.
Having this third-party library just for the git() helper is a bit overkill. Use the plain subprocess module instead.
@carlescufi , others?, this should make this script portable to Windows.
This PR now gets rid of all pylint warnings in what_changed.py
too. Got messy to split it up, because CI would fail as soon as you touched what_changed.py
.
Maybe the git()
helper could be moved into a separate .py
along with other shared helpers later on. Think @marc-hb was thinking of something similar.
Do you understand why
username = os.environ.get('GH_USERNAME', 'zephyrbot')
is not used?
Suspect it was copied over from check_compliance.py
, where it's used.
Could be "will get back to this later" stuff too, but that's confusing for other devs.
Two fixes, which together get rid of all warnings for
what_changed.py
and get rid of thesh
library.Getting rid of the
sh
library was prompted by fixing the warnings, but it seems to have other nice side effects too, like Windows compatibility (for the Git part at least).