jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101562?usp=email )
Change subject: tests: use flake8-comprehensions and flake8-raise with ruff ...................................................................... tests: use flake8-comprehensions and flake8-raise with ruff use flake8-comprehensions and flake8-raise with ruff because of their autofix behaviour. Also update versions. Change-Id: I2634ae2a56abd3ec2d0cb080b8ce8bfa9065b8ae --- M .pre-commit-config.yaml M pyproject.toml 2 files changed, 4 insertions(+), 6 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32691c8..4b8b547 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -92,11 +92,9 @@ - --doctests additional_dependencies: # Due to incompatibilities between packages the order matters. - - flake8-bugbear!=24.1.17 - - flake8-comprehensions>=3.13.0 + - flake8-bugbear>=24.10.31 - flake8-mock-x2 - flake8-print>=5.0.0 - - flake8-quotes>=3.3.2 - - flake8-raise + - flake8-quotes>=3.4.0 - flake8-tuple>=0.4.1 - - pep8-naming>=0.13.3 + - pep8-naming>=0.14.1 diff --git a/pyproject.toml b/pyproject.toml index d26c07a..ebc91a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -189,7 +189,7 @@ [tool.ruff.lint] -select = ["D"] +select = ["C4", "D", "RSE"] ignore = ["D105", "D211", "D213", "D214", "D401", "D404", "D406", "D407", "D412", "D413", "D416", "D417"] [tool.ruff.lint.per-file-ignores] -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1101562?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: I2634ae2a56abd3ec2d0cb080b8ce8bfa9065b8ae Gerrit-Change-Number: 1101562 Gerrit-PatchSet: 1 Gerrit-Owner: Xqt <i...@gno.de> Gerrit-Reviewer: JJMC89 <jjmc89.wikime...@gmail.com> Gerrit-Reviewer: jenkins-bot
_______________________________________________ Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org