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", | ```
This commit is contained in:
parent
dda91cfc15
commit
e9953aa154
1 changed files with 5 additions and 0 deletions
5
pyproject.toml
Normal file
5
pyproject.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
[tool.ruff.lint]
|
||||
extend-select = ["ISC"]
|
||||
|
||||
[tool.ruff.lint.flake8-implicit-str-concat]
|
||||
allow-multiline = false
|
Loading…
Add table
Add a link
Reference in a new issue