Merge release 2.7.5
This commit is contained in:
+39
-20
@@ -63,26 +63,34 @@ preview = true
|
||||
|
||||
# Rules: https://docs.astral.sh/ruff/rules
|
||||
select = [
|
||||
"A", # flake8-builtins (A)
|
||||
"ANN", # flake8-annotations (ANN)
|
||||
"B", # flake8-bugbear (B)
|
||||
"E", # pycodestyle (E)
|
||||
"F", # Pyflakes (F)
|
||||
"FA", # flake8-future-annotations (FA)
|
||||
"PERF", # Perflint (PERF)
|
||||
"PLC", # Pylint Convention (PLC)
|
||||
"PLE", # Pylint Error (PLE)
|
||||
"PLW", # Pylint Warning (PLW)
|
||||
"Q", # flake8-quotes (Q)
|
||||
"RUF", # Ruff-specific rules (RUF)
|
||||
"SLF", # flake8-self (SLF)
|
||||
"SLOT", # flake8-slots (SLOT)
|
||||
"TC", # flake8-type-checking (TC)
|
||||
"UP", # pyupgrade (UP)
|
||||
"W", # pycodestyle (W)
|
||||
"A", # flake8-builtins (A)
|
||||
"ANN", # flake8-annotations (ANN)
|
||||
"B", # flake8-bugbear (B)
|
||||
"D", # pydocstyle (D)
|
||||
"E", # pycodestyle (E)
|
||||
"F", # Pyflakes (F)
|
||||
"FA", # flake8-future-annotations (FA)
|
||||
"PERF", # Perflint (PERF)
|
||||
"PLC", # Pylint Convention (PLC)
|
||||
"PLE", # Pylint Error (PLE)
|
||||
"PLR17", # Refactor (PLR) - Only PLR17xx
|
||||
"PLW", # Pylint Warning (PLW)
|
||||
"Q", # flake8-quotes (Q)
|
||||
"RET", # flake8-return (RET)
|
||||
"RUF", # Ruff-specific rules (RUF)
|
||||
"SLF", # flake8-self (SLF)
|
||||
"SLOT", # flake8-slots (SLOT)
|
||||
"TC", # flake8-type-checking (TC)
|
||||
"UP", # pyupgrade (UP)
|
||||
"W", # pycodestyle (W)
|
||||
]
|
||||
ignore = [
|
||||
"ANN401", # any-type
|
||||
"D105", # undocumented-magic-method
|
||||
"D107", # undocumented-public-init
|
||||
"D203", # incorrect-blank-line-before-class
|
||||
"D205", # missing-blank-line-after-summary
|
||||
"D213", # multi-line-summary-second-line
|
||||
"E221", # multiple-spaces-before-operator
|
||||
"E226", # missing-whitespace-around-arithmetic-operator
|
||||
"E228", # missing-whitespace-around-modulo-operator
|
||||
@@ -92,6 +100,7 @@ ignore = [
|
||||
"PLC1901", # compare-to-empty-string
|
||||
"PLW0108", # unnecessary-lambda
|
||||
"PLW2901", # redefined-loop-name
|
||||
"RET505", # superfluous-else-return
|
||||
"RUF001", # ambiguous-unicode-character-string
|
||||
"RUF002", # ambiguous-unicode-character-docstring
|
||||
"RUF015", # unnecessary-iterable-allocation-for-first-element
|
||||
@@ -100,9 +109,21 @@ ignore = [
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/*" = ["ANN", "SLF", "TC", "PLC2701"]
|
||||
"tests/*" = ["ANN", "SLF", "TC", "PLC2701", "D101", "D102"]
|
||||
"utils/*" = ["ANN", "SLF", "TC"]
|
||||
|
||||
[tool.ruff.lint.pydocstyle]
|
||||
ignore-decorators = [
|
||||
"abc.abstractmethod",
|
||||
"property",
|
||||
"PyQt6.QtCore.pyqtProperty",
|
||||
"typing.overload",
|
||||
"pytest.fixture",
|
||||
]
|
||||
|
||||
[tool.ruff.lint.pylint]
|
||||
max-nested-blocks = 10
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
|
||||
@@ -111,7 +132,6 @@ include = ["novelwriter"]
|
||||
exclude = ["**/__pycache__"]
|
||||
|
||||
reportIncompatibleMethodOverride = false
|
||||
|
||||
pythonVersion = "3.10"
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
@@ -121,7 +141,6 @@ markers = [
|
||||
"base: Base classes tests",
|
||||
"core: Core classes tests",
|
||||
"gui: GUI classes tests",
|
||||
"serial",
|
||||
]
|
||||
|
||||
[tool.coverage.run]
|
||||
|
||||
Reference in New Issue
Block a user