From d7ece3b8fc7d91b4addc48b867028afaf2399b57 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Thu, 10 Aug 2023 16:43:39 -0700 Subject: [PATCH] Ruff: Disallow implicit string concat (#29316) * ruff enable isc * also disallow multiline old-commit-hash: 69deed1f1a25e1b230fe492797bfd5d97e6b0f2d --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e29a500cc9..0d875a5a16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,8 +197,8 @@ build-backend = "poetry.core.masonry.api" # https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml [tool.ruff] -select = ["E", "F", "W", "PIE", "C4"] -ignore = ["W292", "E741", "E402", "C408"] +select = ["E", "F", "W", "PIE", "C4", "ISC"] +ignore = ["W292", "E741", "E402", "C408", "ISC003"] line-length = 160 target-version="py311" exclude = [ @@ -209,3 +209,4 @@ exclude = [ "tinygrad_repo", "third_party", ] +flake8-implicit-str-concat.allow-multiline=false