summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-15 14:02:37 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-17 18:52:12 +0100
commitb246fb383b48e88e38f979f0026c4772a6e1c3f2 (patch)
treee2b4e755581ff5e0c494beeb9405c83fdacf89b3
parente71be7ffc47fc5594ae558754a12ce5f26d1236b (diff)
downloadqutebrowser-b246fb383b48e88e38f979f0026c4772a6e1c3f2.tar.gz
qutebrowser-b246fb383b48e88e38f979f0026c4772a6e1c3f2.zip
Improve joinpath regex
joinpath is still useful with a list of args (cherry picked from commit ed20af9828f609449afdf64dacf152da5924f6cb)
-rw-r--r--scripts/dev/misc_checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py
index 3a93b05e1..4c913cd3d 100644
--- a/scripts/dev/misc_checks.py
+++ b/scripts/dev/misc_checks.py
@@ -249,7 +249,7 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]:
"use snake-case instead",
),
(
- re.compile(r'\.joinpath\('),
+ re.compile(r'\.joinpath\((?!\*)'),
"use the / operator for joining paths",
),
(