diff --git a/pyproject.toml b/pyproject.toml index b9edc4c9..6c2a5fa8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -96,3 +96,26 @@ Repository = "https://github.com/MaartenGr/BERTopic.git" [tool.setuptools.packages.find] include = ["bertopic*"] exclude = ["tests"] + +[tool.ruff] +target-version = "py38" + +[tool.ruff.lint] +select = [ + "E4", # Ruff Defaults + "E7", + "E9", + "F", # End Ruff Defaults, + "D" +] + +ignore = [ + "D100", # Missing docstring in public module + "D104" # Missing docstring in public package +] + +[tool.ruff.lint.per-file-ignores] +"**/tests/*" = ["D"] # Ignore all docstring errors in tests + +[tool.ruff.lint.pydocstyle] +convention = "google" \ No newline at end of file diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index 918e4e06..00000000 --- a/ruff.toml +++ /dev/null @@ -1,21 +0,0 @@ -target-version = "py38" - -[lint] -select = [ - "E4", # Ruff Defaults - "E7", - "E9", - "F", # End Ruff Defaults, - "D" -] - -ignore = [ - "D100", # Missing docstring in public module - "D104" # Missing docstring in public package -] - -[lint.per-file-ignores] -"**/tests/*" = ["D"] # Ignore all docstring errors in tests - -[lint.pydocstyle] -convention = "google" \ No newline at end of file