diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index b8965e31682..00000000000 --- a/pyproject.toml +++ /dev/null @@ -1,43 +0,0 @@ -[tool.ruff] - # 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. - lint.select = ["E", "F", "FLY", "TRY004", "TRY2"] - lint.ignore = ["E501", "E722", "F821"] - - # Allow autofix for all enabled rules (when `--fix`) is provided. - lint.fixable = ["ALL"] - lint.unfixable = [] - - lint.preview = true - - # Exclude a variety of commonly ignored directories. - exclude = [ - ".bzr", - ".direnv", - ".eggs", - ".git", - ".git-rewrite", - ".hg", - ".mypy_cache", - ".nox", - ".pants.d", - ".pytype", - ".ruff_cache", - ".svn", - ".tox", - ".venv", - "__pypackages__", - "_build", - "buck-out", - "build", - "dist", - "node_modules", - "venv", - # Not for the dojo specific stuff - "dojo/db_migrations" - ] - lint.per-file-ignores = {} - - # Same as Black. - line-length = 120 diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000000..b9e647656c8 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,43 @@ +# Same as Black. +line-length = 120 + +exclude = [ + ".bzr", + ".direnv", + ".eggs", + ".git", + ".git-rewrite", + ".hg", + ".mypy_cache", + ".nox", + ".pants.d", + ".pytype", + ".ruff_cache", + ".svn", + ".tox", + ".venv", + "__pypackages__", + "_build", + "buck-out", + "build", + "dist", + "node_modules", + "venv", + # Not for the dojo specific stuff + "dojo/db_migrations" +] + +[lint] +# 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", "FLY", "TRY004", "TRY2"] +ignore = ["E501", "E722", "F821"] + +# Allow autofix for all enabled rules (when `--fix`) is provided. +fixable = ["ALL"] +unfixable = [] + +preview = true + +per-file-ignores = {}