aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/app.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-23 06:06:48 +0200
committerEgor Tensin <egor@tensin.name>2026-05-23 06:06:48 +0200
commit7a9c2499a39f3fe4b28bf194079962805e63dd76 (patch)
tree39eff0e893f1eaa4c7a8a66a4dd0481c9e228afd /src/app.py
parentworkflows/ci: run the Black linter (diff)
downloadlinux-status-7a9c2499a39f3fe4b28bf194079962805e63dd76.tar.gz
linux-status-7a9c2499a39f3fe4b28bf194079962805e63dd76.zip
reformat files in accordance with Black
Diffstat (limited to 'src/app.py')
-rwxr-xr-xsrc/app.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/app.py b/src/app.py
index 8dd3b86..6d838e0 100755
--- a/src/app.py
+++ b/src/app.py
@@ -116,7 +116,14 @@ class Response:
def run_do(*args, **kwargs):
- output = subprocess.run(args, stdin=DEVNULL, stdout=PIPE, stderr=STDOUT, universal_newlines=True, **kwargs)
+ output = subprocess.run(
+ args,
+ stdin=DEVNULL,
+ stdout=PIPE,
+ stderr=STDOUT,
+ universal_newlines=True,
+ **kwargs,
+ )
# Include the output in the exception's message:
try:
output.check_returncode()
@@ -330,10 +337,7 @@ class ThermalInfo(Task):
@staticmethod
def _collect_dirs():
root = ThermalInfo.ROOT
- dirs = [
- dir for dir in os.listdir(root)
- if re.match(r'^thermal_zone\d+$', dir)
- ]
+ dirs = [dir for dir in os.listdir(root) if re.match(r'^thermal_zone\d+$', dir)]
dirs = sorted(dirs)
dirs = [os.path.join(root, dir) for dir in dirs]
return dirs