From 1f4e81977088a7ee3472f8a1e5ec5d9c5e9f337a Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 7 Mar 2024 21:47:02 -0700 Subject: [PATCH] move to ruff.toml --- CHANGELOG.rst | 6 ++++++ pyproject.toml | 28 ---------------------------- ruff.toml | 27 +++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 ruff.toml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 240cb0e5..2bc4bc7e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,12 @@ Added * Added support for Python 3.8. +Changed +^^^^^^^ + +* Move ruff configuration out of ``pyproject.toml`` into ``ruff.toml``. + [`#163 `_] + ---- 0.36.0 (2024-03-07) diff --git a/pyproject.toml b/pyproject.toml index 1da92d6b..adf72fbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,31 +51,3 @@ examples = [ readme = {file = "README.rst"} [tool.setuptools_scm] - -[tool.ruff] -allowed-confusables = ["×"] - -[tool.ruff.lint] -select = ['ALL'] -ignore = [ - 'D105', - 'D212', - 'D211', - 'PLR2004', - 'RUF001', - 'SIM108', - 'TD002', - 'TD003', - 'FIX002', - 'RET504', -] - -[tool.ruff.format] -docstring-code-format = true - -[tool.ruff.per-file-ignores] -"tests/*.py" = ["D", "ANN", "PT"] -"examples/*.py" = ["D"] - -[tool.ruff.lint.pydocstyle] -convention = "numpy" diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000..3247c9f8 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,27 @@ +[lint] +allowed-confusables = ["×"] +select = ['ALL'] +ignore = [ + 'D105', + 'D212', + 'D211', + 'PLR2004', + 'RUF001', + 'SIM108', + 'TD002', + 'TD003', + 'FIX002', + 'RET504', + 'COM812', + 'ISC001', +] + +[lint.pydocstyle] +convention = "numpy" + +[lint.per-file-ignores] +"tests/*.py" = ["D", "ANN", "PT"] +"examples/*.py" = ["D"] + +[format] +docstring-code-format = true