updates ruff config

This commit is contained in:
Mose Müller 2023-11-27 17:37:29 +01:00
parent e57fe10c9e
commit e576f6eb80

View File

@ -59,7 +59,6 @@ select = ["ALL"]
ignore = [ ignore = [
"ANN101", # typing self "ANN101", # typing self
"ANN401", # disallow Any typing "ANN401", # disallow Any typing
"E501",
"F403", "F403",
"F405", "F405",
"E203", "E203",
@ -77,6 +76,7 @@ ignore = [
"D412", # No blank lines allowed between a section header and its content "D412", # No blank lines allowed between a section header and its content
"D415", # First line should end with a period, question mark, or exclamation point "D415", # First line should end with a period, question mark, or exclamation point
"UP007", # Use `X | Y` for type annotations "UP007", # Use `X | Y` for type annotations
"PTH", # flake8-use-pathlib
"TRY", # Exception Handling AntiPatterns in Python "TRY", # Exception Handling AntiPatterns in Python
"EM", # flake8 error messages "EM", # flake8 error messages
"SLF", # flake8-self "SLF", # flake8-self
@ -87,6 +87,9 @@ extend-exclude = [
"docs", "frontend", "tests" "docs", "frontend", "tests"
] ]
[tool.ruff.lint.mccabe]
max-complexity = 7
[tool.pyright] [tool.pyright]
include = ["src/pydase"] include = ["src/pydase"]