ruff: set tab size and quote style (#31749)

pull/31762/head
Clark934 1 year ago committed by GitHub
parent 84797482e9
commit 997bb65e54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pyproject.toml

@ -171,6 +171,7 @@ 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]
indent-width = 2
lint.select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF008", "RUF100", "A", "B", "TID251"] lint.select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF008", "RUF100", "A", "B", "TID251"]
lint.ignore = ["E741", "E402", "C408", "ISC003", "B027", "B024"] lint.ignore = ["E741", "E402", "C408", "ISC003", "B027", "B024"]
line-length = 160 line-length = 160
@ -195,3 +196,5 @@ lint.flake8-implicit-str-concat.allow-multiline=false
[tool.coverage.run] [tool.coverage.run]
concurrency = ["multiprocessing", "thread"] concurrency = ["multiprocessing", "thread"]
[tool.ruff.format]
quote-style = "preserve"

Loading…
Cancel
Save