From f3d35a68e03f5ebe492866e6474dcb53760fde3c Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Wed, 1 Feb 2023 12:38:29 -0600 Subject: [PATCH] chore(lint): update ruff and config (#22) New ignore: Too many arguments on test functions * chore(lint): Ruff autofixes for new pylint --- pyproject.toml | 4 +++- tox.ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2bd805c033..68c9bb1d18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,7 +140,8 @@ select = [ # Base linting rule selections. "ISC", # Implicit string concatenation that can cause subtle issues "ICN", # Only use common conventions for import aliases. "Q", # Consistent quotations - "RET" # Simpler logic after return, raise, continue or break + "RET", # Simpler logic after return, raise, continue or break + "UP018", "C408", # Convert type calls to literals. The latest pylint enforces this, but ruff has auto-fixes. ] extend-select = [ # These sets are still frequently getting new rules. @@ -187,6 +188,7 @@ ignore = [ "S101", # Allow assertions in tests "S103", # Allow `os.chmod` setting a permissive mask `0o555` on file or directory "S108", # Allow Probable insecure usage of temporary file or directory + "PLR0913", # Allow many arguments for test functions ] # isort leaves init files alone by default, this makes ruff ignore them too. "__init__.py" = ["I001"] diff --git a/tox.ini b/tox.ini index d2c95755db..a856c331c9 100644 --- a/tox.ini +++ b/tox.ini @@ -56,7 +56,7 @@ deps = # renovate: datasource=pypi black>=22.12.0 # renovate: datasource=pypi - ruff==0.0.236 + ruff==0.0.239 # renovate: datasource=pypi codespell[tomli]>=2.2.2 # renovate: datasource=pypi