Skip to content

Commit bce189d

Browse files
enable ruff-check and make it happy
1 parent 8cfeb3a commit bce189d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

apks/chromium/mk-vendor-file.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
from __future__ import print_function
66

77
import argparse
8-
import json
98
import os
109
import re
1110
import shutil
12-
import string
1311
import subprocess
1412
import sys
1513

@@ -32,7 +30,7 @@ def hash_path(path):
3230
.decode()
3331
.strip()
3432
)
35-
if re.match(r"[0-9a-z]{52}", sha256) == None:
33+
if re.match(r"[0-9a-z]{52}", sha256) is None:
3634
raise ValueError("bad hash %s" % sha256)
3735
return sha256
3836

@@ -228,7 +226,7 @@ def make_vendor_file(chromium_version, target_os):
228226
):
229227
continue
230228

231-
if not path in deps:
229+
if path not in deps:
232230
if fields["dep_type"] == "git":
233231
url, rev = fields["url"].split("@")
234232
wholepath = os.path.join(topdir, path)

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
shfmt.enable = true;
3232
shellcheck.enable = true;
3333
ruff-format.enable = true;
34-
# ruff-check.enable = true; TODO: fix scripts
34+
ruff-check.enable = true;
3535
rustfmt.enable = true;
3636
};
3737
};

0 commit comments

Comments
 (0)