From dcb69b447b284a3da18820d44c0506dd5896843f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 15 Sep 2021 17:14:41 -0700 Subject: [PATCH] pyproject: Make isort consistent across execution environments In some cases, isort is not treating "plinth" module as a "first party" module. It is then treated as a "third party" module and groups with non-standard python libraries that we use. This behavior seems to dependent on from where isort is run. To eliminate this uncertainty, explicitly mark "plinth" module without depending on automatic detection of isort. The two preferred ways to provide the configuration are using .isort.cfg and pyproject.toml. The former introduces yet another file in the project directory while the latter, a new python PEP, promises to unify several other such configuration files. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..9f8a5ed54 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.isort] +known_first_party = ["plinth"]