Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1130649?usp=email )
Change subject: tests: use ruff for flake8-quotes ......................................................................
tests: use ruff for flake8-quotes
This enables autofix
Change-Id: I9f7d05cbb1d6535b5b976672bd298e90723f8f3a --- M .pre-commit-config.yaml M pyproject.toml 2 files changed, 4 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 221d027..51e62ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -101,6 +101,5 @@ - flake8-bugbear>=24.10.31 - flake8-mock-x2 - flake8-print>=5.0.0 - - flake8-quotes>=3.4.0 - flake8-tuple>=0.4.1 - pep8-naming>=0.14.1 diff --git a/pyproject.toml b/pyproject.toml index 511c9d5..b2ef553 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -194,10 +194,13 @@
[tool.ruff.lint] -select = ["C4", "D", "RSE"] +select = ["C4", "D", "Q", "RSE"] ignore = ["D105", "D211", "D213", "D214", "D401", "D404", "D406", "D407", "D412", "D413", "D416", "D417"]
[tool.ruff.lint.per-file-ignores] "pywikibot/families/*" = ["D102"] "scripts/dataextend.py" = ["D101", "D102"] "tests/ui_tests.py" = ["D102", "D103"] + +[tool.ruff.lint.flake8-quotes] +inline-quotes = "single"
pywikibot-commits@lists.wikimedia.org