From aaef6d269319e079c24fea186c2dc0063bc2a6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matos?= Date: Sat, 15 Jun 2024 10:04:31 +0100 Subject: [PATCH] Add pyproject.toml file to manage some options for tools This file is only relevant for tools that use it, in development, and so it is not supposed to be installed. It does not harm but there is no purpose. --- lib/pyproject.toml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/pyproject.toml diff --git a/lib/pyproject.toml b/lib/pyproject.toml new file mode 100644 index 0000000000..88d360fc1d --- /dev/null +++ b/lib/pyproject.toml @@ -0,0 +1,20 @@ +[tool.ruff] + +# Assume Python 3.8 +target-version = "py38" + +# indentation details +line-length = 96 +indent-width = 4 + +[tool.ruff.format] +# Enable auto-formatting of code examples in docstrings. Markdown, +# reStructuredText code/literal blocks and doctests are all supported. +docstring-code-format = true + +# Set the line length limit used when formatting code snippets in +# docstrings. +# +# This only has an effect when the `docstring-code-format` setting is +# enabled. +docstring-code-line-length = "dynamic"