Enable Ruff preview flag

This commit is contained in:
Veronica Berglyd Olsen
2025-04-05 15:24:23 +02:00
parent 4a94a36a1d
commit 2975cc7f8f
3 changed files with 4 additions and 8 deletions
+2 -6
View File
@@ -59,6 +59,7 @@ forced_separate = ["tests.*"]
line-length = 99
[tool.ruff.lint]
preview = true
select = [
"A", # flake8-builtins (A)
"B", # flake8-bugbear (B)
@@ -67,7 +68,6 @@ select = [
"W", # pycodestyle (W)
"UP", # pyupgrade (UP)
"ANN", # flake8-annotations (ANN)
"PLC", # Pylint Convention (PLC)
"PLE", # Pylint Error (PLE)
"FA", # flake8-future-annotations (FA)
]
@@ -76,6 +76,7 @@ ignore = [
"E226", # missing-whitespace-around-arithmetic-operator
"E228", # missing-whitespace-around-modulo-operator
"E241", # multiple-spaces-after-comma
"E272", # multiple-spaces-before-keyword
"ANN401", # any-type
"UP015", # redundant-open-modes
"UP030", # format-literals
@@ -92,11 +93,6 @@ include = ["novelwriter"]
exclude = ["**/__pycache__"]
reportIncompatibleMethodOverride = false
reportGeneralTypeIssues = "information"
reportOptionalMemberAccess = "information"
reportOptionalOperand = "information"
reportOptionalSubscript = "information"
reportUnboundVariable = "error"
pythonVersion = "3.10"