From b1a6a0bac7cb445d9c6bbb5adc89030a02f73462 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 29 Feb 2024 12:06:49 -0500 Subject: [PATCH] Misc: add pyproject.toml MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pyproject.toml 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] -- 2.34.1