mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 14:25:48 +01:00
Lint
This commit is contained in:
esphome/components/deep_sleep
script
@ -126,3 +126,13 @@ def filter_changed(files):
|
||||
for c in files:
|
||||
print(" {}".format(c))
|
||||
return files
|
||||
|
||||
|
||||
def git_ls_files():
|
||||
command = ['git', 'ls-files', '-s']
|
||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
output, err = proc.communicate()
|
||||
lines = [x.split() for x in output.decode('utf-8').splitlines()]
|
||||
return {
|
||||
s[3].strip(): int(s[0]) for s in lines
|
||||
}
|
||||
|
Reference in New Issue
Block a user