From d09dfb0dc04eda3238b2184e4a3f94ce83e48a67 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Wed, 27 Dec 2023 10:08:50 +0100 Subject: [PATCH] Python packages isort and pyflakes are used in Python mode --- README.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.org b/README.org index 8468790..e350f4f 100644 --- a/README.org +++ b/README.org @@ -5687,6 +5687,10 @@ of [[https://github.com/jorgenschaefer/pyvenv#readme][pyvenv]]). Therefore, I r [[lst:select-python-virtual-environment][select a Python interpreter in a virtual environment]] to set =python-shell-virtualenv-root= from within Emacs. +Install [[https://github.com/PyCQA/isort#readme][isort]] and [[https://github.com/PyCQA/pyflakes#readme][pyflakes]] to enable adding, removing, sorting, and fixing +import statements in [[https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el][Python-mode]], see the end of the commentary +src_emacs-lisp{(find-library "python")} section. + Listing [[lst:pyproject-toml-kickoff][kickoff pyproject.toml proposal]] facilitates dropping a [[https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml][pyproject.toml]] file into Python projects which anyhow should switch to using a [[https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml][pyproject.toml]] file as explained in the post [[https://bbc.github.io/cloudfit-public-docs/packaging/this_way_up.html][This Way Up: A Bottom-Up Look At Python Packaging]].