ruff: enable NPY

old-commit-hash: 788c4edeec
pull/32103/head
Adeeb Shihadeh 11 months ago
parent 4d0fdbff52
commit 73e4aa24b9
  1. 12
      pyproject.toml

@ -184,8 +184,16 @@ 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 indent-width = 2
lint.select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF008", "RUF100", "A", "B", "TID251"] lint.select = ["E", "F", "W", "PIE", "C4", "ISC", "NPY", "RUF008", "RUF100", "A", "B", "TID251"]
lint.ignore = ["E741", "E402", "C408", "ISC003", "B027", "B024"] lint.ignore = [
"E741",
"E402",
"C408",
"ISC003",
"B027",
"B024",
"NPY002", # new numpy random syntax is worse
]
line-length = 160 line-length = 160
target-version="py311" target-version="py311"
exclude = [ exclude = [

Loading…
Cancel
Save