diff options
author | toofar <toofar@spalge.com> | 2022-11-20 15:48:00 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2022-11-20 15:48:00 +1300 |
commit | 2d6646619449d0baa72b35c9e88a3cc8f7c0b790 (patch) | |
tree | 1501ae07ce9917d257ce900e17a921f369c3ae88 /scripts/dev/misc_checks.py | |
parent | d9a46b1a62792b3f74e428bbde852209328f1e8d (diff) | |
parent | 1417ffa519a7c43197edafde76dd49fc348784f7 (diff) | |
download | qutebrowser-2d6646619449d0baa72b35c9e88a3cc8f7c0b790.tar.gz qutebrowser-2d6646619449d0baa72b35c9e88a3cc8f7c0b790.zip |
Merge branch 'master' into qt6-v2
Just a few conflicts around CI and dependencies.
Diffstat (limited to 'scripts/dev/misc_checks.py')
-rw-r--r-- | scripts/dev/misc_checks.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index 0e015e03d..c5c20a593 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -38,7 +38,7 @@ from scripts import utils from scripts.dev import recompile_requirements BINARY_EXTS = {'.png', '.icns', '.ico', '.bmp', '.gz', '.bin', '.pdf', - '.sqlite', '.woff2', '.whl'} + '.sqlite', '.woff2', '.whl', '.egg'} def _get_files( @@ -64,7 +64,7 @@ def _get_files( continue try: - with tokenize.open(str(path)): + with tokenize.open(path): pass except SyntaxError as e: # Could not find encoding @@ -275,7 +275,7 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]: try: ok = True for path in _get_files(verbose=args.verbose, ignored=ignored): - with tokenize.open(str(path)) as f: + with tokenize.open(path) as f: if not _check_spelling_file(path, f, patterns): ok = False print() @@ -325,7 +325,7 @@ def check_vcs_conflict(args: argparse.Namespace) -> Optional[bool]: if path.suffix in {'.rst', '.asciidoc'}: # False positives continue - with tokenize.open(str(path)) as f: + with tokenize.open(path) as f: for line in f: if any(line.startswith(c * 7) for c in '<>=|'): print("Found conflict marker in {}".format(path)) |