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]+?))$" 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