update config for Ruff and Pyright
This commit is contained in:
+11
-1
@@ -15,6 +15,16 @@ requires = ["pdm-backend", "Cython", "setuptools"]
|
||||
build-backend = "pdm.backend"
|
||||
|
||||
|
||||
[tool.pyright]
|
||||
typeCheckingMode = "basic"
|
||||
pythonVersion = "3.11"
|
||||
reportUnusedImport = "none"
|
||||
reportUnusedVariable = "warning"
|
||||
reportUnusedClass = "warning"
|
||||
reportUnusedFunction = "warning"
|
||||
reportPrivateUsage = "error"
|
||||
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 94
|
||||
indent-width = 4
|
||||
@@ -26,7 +36,7 @@ quote-style = "double"
|
||||
skip-magic-trailing-comma = false
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I"]
|
||||
select = ["E", "F", "I", "SLF"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
extra-standard-library = ["typing_extensions"]
|
||||
|
||||
Reference in New Issue
Block a user