From: Kienan Stewart Date: Thu, 29 Feb 2024 17:06:49 +0000 (-0500) Subject: Misc: add pyproject.toml X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=b1a6a0bac7cb445d9c6bbb5adc89030a02f73462 Misc: add pyproject.toml This file provides the metadata of what versions of python are required to run `make check` and tests[1]. The required versions of python will also inform `black` for choosing which syntaxes and linting formats to use[2]. An additional section for the `black` linter[3] is provided. While empty, it allows `blacken-mode`[4] for emacs to use the `blacken-only-if-project-is-blackened` setting. References ========== [1]: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires [2]: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#t-target-version [3]: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#where-black-looks-for-the-file [4]: https://github.com/pythonic-emacs/blacken Change-Id: I07765dbd088059f336d278a6212ac8d4ee87c79d Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..28c78a076 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[project] +requires-python = ">= 3.4" + +[tool.black]