From b246fb383b48e88e38f979f0026c4772a6e1c3f2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 15 Mar 2021 14:02:37 +0100 Subject: Improve joinpath regex joinpath is still useful with a list of args (cherry picked from commit ed20af9828f609449afdf64dacf152da5924f6cb) --- scripts/dev/misc_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", ), ( -- cgit v1.2.3-54-g00ecf