From aaabbabcd4fa0c29f662f4b53fa2f350b05194a4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:05:03 +0000 Subject: [PATCH 1/2] Update dependency ruff from 0.1.15 to v0.2.1 (requirements-lint.txt) --- requirements-lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 4c4b9dda191..96ae82b23ab 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.1.15 \ No newline at end of file +ruff==0.2.1 \ No newline at end of file From ebb228e68543f83439c297f537fc281df6a7e891 Mon Sep 17 00:00:00 2001 From: kiblik Date: Tue, 6 Feb 2024 19:10:29 +0100 Subject: [PATCH 2/2] Fix ruff warning (#9461) * Update dependency ruff from 0.1.15 to v0.2.0 (requirements-lint.txt) * fix ruff warning --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com> --- pyproject.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9207b1fce1d..37097131172 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,12 +2,12 @@ # Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. - select = ["E", "F"] - ignore = ["E501", "E722", "E402", "E731", "E713", "F821", "F601", "F403"] + lint.select = ["E", "F"] + lint.ignore = ["E501", "E722", "E402", "E731", "E713", "F821", "F601", "F403"] # Allow autofix for all enabled rules (when `--fix`) is provided. - fixable = ["ALL"] - unfixable = [] + lint.fixable = ["ALL"] + lint.unfixable = [] # Exclude a variety of commonly ignored directories. exclude = [ @@ -35,10 +35,10 @@ # Not for the dojo specific stuff "dojo/db_migrations" ] - per-file-ignores = {} + lint.per-file-ignores = {} # Same as Black. line-length = 120 # Allow unused variables when underscore-prefixed. - dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" \ No newline at end of file + lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"