From e9953aa15461b356c09bb028ab84466b8a9303fe Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 9 Jul 2025 03:59:54 +0200 Subject: [PATCH] ruff: reject implicit string concat This is a common mistake that could have been prevented. ``` migrations/nixos-mailserver-migration-03.py:42:9: ISC002 Implicitly concatenated string literals over multiple lines | 40 | def is_maildir_related(path: Path, layout: FolderLayout) -> bool: 41 | if path.name in [ 42 | / "subscriptions" 43 | | # https://doc.dovecot.org/2.3/admin_manual/mailbox_formats/maildir/#imap-uid-mapping 44 | | "dovecot-uidlist", | |_________________________^ ISC002 45 | # https://doc.dovecot.org/2.3/admin_manual/mailbox_formats/maildir/#imap-keywords 46 | "dovecot-keywords", | ``` --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f290152 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[tool.ruff.lint] +extend-select = ["ISC"] + +[tool.ruff.lint.flake8-implicit-str-concat] +allow-multiline = false