From 5a3df16a2cd61ad2fe91967c0b102394604a8bb0 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Tue, 30 Jul 2024 20:48:17 +0200 Subject: [PATCH] Activate flake8-implicit-str-concat linter --- btest | 22 +++++++++++----------- examples/sphinx/conf.py | 2 +- pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/btest b/btest index b14ada6..9e82222 100755 --- a/btest +++ b/btest @@ -3169,17 +3169,17 @@ if __name__ == "__main__": # Commands as tuple (tag, regexp, more-than-one-is-ok, optional, group-main, group-add) # pylint: disable=bad-whitespace # fmt: off - RE_EXEC = ("exec", re.compile(CommandPrefix + "EXEC(-FAIL)?: *(.*)"), True, False, 2, 1) # noqa - RE_REQUIRES = ("requires", re.compile(CommandPrefix + "REQUIRES: *(.*)"), True, True, 1, -1) # noqa - RE_GROUP = ("group", re.compile(CommandPrefix + "GROUP: *(.*)"), True, True, 1, -1) # noqa - RE_SERIALIZE = ("serialize", re.compile(CommandPrefix + "SERIALIZE: *(.*)"), False, True, 1, -1) # noqa - RE_PORT = ("port", re.compile(CommandPrefix + "PORT: *(.*)"), True, True, 1, -1) # noqa - RE_INCLUDE_ALTERNATIVE = ("alternative", re.compile(CommandPrefix + "ALTERNATIVE: *(.*)"), True, True, 1, -1) # noqa - RE_IGNORE_ALTERNATIVE = ("not-alternative", re.compile(CommandPrefix + "NOT-ALTERNATIVE: *(.*)"), True, True, 1, -1) # noqa - RE_COPY_FILE = ("copy-file", re.compile(CommandPrefix + "COPY-FILE: *(.*)"), True, True, 1, -1) # noqa - RE_KNOWN_FAILURE = ("known-failure", re.compile(CommandPrefix + "KNOWN-FAILURE"), False, True, -1, -1) # noqa - RE_MEASURE_TIME = ("measure-time", re.compile(CommandPrefix + "MEASURE-TIME"), False, True, -1, -1) # noqa - RE_DOC = ("doc", re.compile(CommandPrefix + "DOC: *(.*)"), True, True, 1, -1) # noqa + RE_EXEC = ("exec", re.compile(CommandPrefix + "EXEC(-FAIL)?: *(.*)"), True, False, 2, 1) + RE_REQUIRES = ("requires", re.compile(CommandPrefix + "REQUIRES: *(.*)"), True, True, 1, -1) + RE_GROUP = ("group", re.compile(CommandPrefix + "GROUP: *(.*)"), True, True, 1, -1) + RE_SERIALIZE = ("serialize", re.compile(CommandPrefix + "SERIALIZE: *(.*)"), False, True, 1, -1) + RE_PORT = ("port", re.compile(CommandPrefix + "PORT: *(.*)"), True, True, 1, -1) + RE_INCLUDE_ALTERNATIVE = ("alternative", re.compile(CommandPrefix + "ALTERNATIVE: *(.*)"), True, True, 1, -1) + RE_IGNORE_ALTERNATIVE = ("not-alternative", re.compile(CommandPrefix + "NOT-ALTERNATIVE: *(.*)"), True, True, 1, -1) + RE_COPY_FILE = ("copy-file", re.compile(CommandPrefix + "COPY-FILE: *(.*)"), True, True, 1, -1) + RE_KNOWN_FAILURE = ("known-failure", re.compile(CommandPrefix + "KNOWN-FAILURE"), False, True, -1, -1) + RE_MEASURE_TIME = ("measure-time", re.compile(CommandPrefix + "MEASURE-TIME"), False, True, -1, -1) + RE_DOC = ("doc", re.compile(CommandPrefix + "DOC: *(.*)"), True, True, 1, -1) # fmt: on # pylint: enable=bad-whitespace diff --git a/examples/sphinx/conf.py b/examples/sphinx/conf.py index 4d56f7c..a7248d9 100644 --- a/examples/sphinx/conf.py +++ b/examples/sphinx/conf.py @@ -10,7 +10,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys sys.path.append("../../sphinx") sys.path.append("../../../sphinx") diff --git a/pyproject.toml b/pyproject.toml index 8dbf689..d1a6325 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,4 +72,4 @@ per-file-ignores = """ """ [tool.ruff.lint] -select = ["C4", "COM", "F", "I", "UP"] +select = ["C4", "COM", "F", "I", "ISC", "UP"]