Ruff: Disallow implicit string concat (#29316)

* ruff enable isc

* also disallow multiline
old-commit-hash: 69deed1f1a
beeps
Justin Newberry 2 years ago committed by GitHub
parent a14f162bc7
commit d7ece3b8fc
  1. 5
      pyproject.toml

@ -197,8 +197,8 @@ build-backend = "poetry.core.masonry.api"
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml # https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
[tool.ruff] [tool.ruff]
select = ["E", "F", "W", "PIE", "C4"] select = ["E", "F", "W", "PIE", "C4", "ISC"]
ignore = ["W292", "E741", "E402", "C408"] ignore = ["W292", "E741", "E402", "C408", "ISC003"]
line-length = 160 line-length = 160
target-version="py311" target-version="py311"
exclude = [ exclude = [
@ -209,3 +209,4 @@ exclude = [
"tinygrad_repo", "tinygrad_repo",
"third_party", "third_party",
] ]
flake8-implicit-str-concat.allow-multiline=false

Loading…
Cancel
Save