diff --git a/pyproject.toml b/pyproject.toml index 695f465..11e2c2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,6 +105,38 @@ warn_unreachable = true [tool.ruff] +# Exclude a variety of commonly ignored directories. +exclude = [ + ".bzr", + ".direnv", + ".eggs", + ".git", + ".hg", + ".mypy_cache", + ".nox", + ".pants.d", + ".pytype", + ".ruff_cache", + ".svn", + ".tox", + ".venv", + "__pypackages__", + "_build", + "buck-out", + "build", + "dist", + "node_modules", + "venv", +] + +# Same as Black. +line-length = 88 + + +# Assume Python 3.10. +target-version = "py310" + +[tool.ruff.lint] select = [ "A", "ARG", @@ -134,52 +166,23 @@ select = [ "TID", "YTT", ] + ignore = ["S105", "S101", "D107", "D105", "PLR0913", "SIM108"] fixable = ["I"] unfixable = [] -# Exclude a variety of commonly ignored directories. -exclude = [ - ".bzr", - ".direnv", - ".eggs", - ".git", - ".hg", - ".mypy_cache", - ".nox", - ".pants.d", - ".pytype", - ".ruff_cache", - ".svn", - ".tox", - ".venv", - "__pypackages__", - "_build", - "buck-out", - "build", - "dist", - "node_modules", - "venv", -] - -# Same as Black. -line-length = 88 - # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -# Assume Python 3.10. -target-version = "py310" - -[tool.ruff.isort] +[tool.ruff.lint.isort] force-single-line = true -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "jsonpath/__about__.py" = ["D100"] "jsonpath/__init__.py" = ["D104"] "tests/*" = ["D100", "D101", "D104", "D103"]