From 4aaaf77773f6db69ab0a50f7f8fd1742a8b9511d Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:25:25 +0200 Subject: [PATCH] Update ruff config --- pyproject.toml | 45 ++++++++++++++++++++++++++++++++++++++++++++- ruff.toml | 40 ---------------------------------------- 2 files changed, 44 insertions(+), 41 deletions(-) delete mode 100644 ruff.toml diff --git a/pyproject.toml b/pyproject.toml index e11982e..a1003f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ dependencies = [ dependencies = [ "ruff==0.14.0", ] -config-path = "ruff.toml" +config-path = "none" [tool.pytest.ini_options] addopts = "--cov=pythonkuma/ --cov-report=term-missing" @@ -68,3 +68,46 @@ extra-dependencies = [ [tool.hatch.envs.default.scripts] docs-serve = "mkdocs serve" docs-build = "mkdocs build" + +[tool.ruff] +target-version = "py314" +line-length = 88 + +[tool.ruff.format] +docstring-code-format = true +docstring-code-line-length = 80 +quote-style = "double" +indent-style = "space" + +[tool.ruff.lint] +select = ["ALL"] +ignore = ["TRY003", "COM812", "N818", "C901"] + +[lint.per-file-ignores] +"**/scripts/*" = [ + "INP001", + "T201", +] +"**/tests/**/*" = [ + "PLC1901", + "PLR2004", + "PLR6301", + "S", + "TID252", +] + +[tool.ruff.lint.flake8-tidy-imports] +ban-relative-imports = "parents" + +[tool.ruff.lint.isort] +known-first-party = ["pyuptimekuma"] +force-sort-within-sections = true +combine-as-imports = true +split-on-trailing-comma = false + +[tool.ruff.lint.flake8-pytest-style] +fixture-parentheses = false +mark-parentheses = false + +[tool.ruff.lint.pydocstyle] +convention = "numpy" \ No newline at end of file diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index a5f315f..0000000 --- a/ruff.toml +++ /dev/null @@ -1,40 +0,0 @@ -line-length = 88 - -[format] -docstring-code-format = true -docstring-code-line-length = 80 -quote-style = "double" -indent-style = "space" - -[lint] -select = ["ALL"] -ignore = ["TRY003", "COM812", "N818", "C901"] - -[lint.per-file-ignores] -"**/scripts/*" = [ - "INP001", - "T201", -] -"**/tests/**/*" = [ - "PLC1901", - "PLR2004", - "PLR6301", - "S", - "TID252", -] - -[lint.flake8-tidy-imports] -ban-relative-imports = "parents" - -[lint.isort] -known-first-party = ["pyuptimekuma"] -force-sort-within-sections = true -combine-as-imports = true -split-on-trailing-comma = false - -[lint.flake8-pytest-style] -fixture-parentheses = false -mark-parentheses = false - -[lint.pydocstyle] -convention = "numpy" \ No newline at end of file