Compare commits

..

No commits in common. "eb36b4e82112ab9acf5dcf9db3770cb3baa43dc1" and "a60623b44c66248c1ff85706d2ccec3c9ae03f3f" have entirely different histories.

View File

@ -3842,8 +3842,8 @@ mode independent [[https://github.com/joaotavora/eglot][Eglot]] configuration:
file [[info:emacs#Directory Variables][.dir-locals.el]] in the root directory of any project using proper file [[info:emacs#Directory Variables][.dir-locals.el]] in the root directory of any project using proper
programming modes). programming modes).
#+caption[Ensure =eglot= installation with minimal setup]: #+caption[Ensure =eglot= installation with minimal configuration]:
#+caption: Ensure =eglot= installation with minimal setup. #+caption: Ensure =eglot= installation with minimal configuration.
#+name: lst:minimal-eglot-setup #+name: lst:minimal-eglot-setup
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'emacs (with-eval-after-load 'emacs
@ -3852,16 +3852,13 @@ mode independent [[https://github.com/joaotavora/eglot][Eglot]] configuration:
;; Replace `nil' with `t' for debugging. ;; Replace `nil' with `t' for debugging.
(when nil (when nil
(when (require 'eglot nil t) (defvar eglot-server-programs
(setq eglot-server-programs `(((python-ts-mod python-mode) . ("pylsp" "-vv")))
`(((python-ts-mod python-mode) "Shadow the definition of `eglot-server-programs' in `eglot'."))
. ,(eglot-alternatives
'(("pylsp" "-vv")
("ruff-lsp"))))))))
(with-eval-after-load 'eglot (with-eval-after-load 'eglot
(define-key eglot-mode-map (kbd "C-c n") 'flymake-goto-next-error) (define-key eglot-mode-map (kbd "C-c n") #'flymake-goto-next-error)
(define-key eglot-mode-map (kbd "C-c p") 'flymake-goto-prev-error) (define-key eglot-mode-map (kbd "C-c p") #'flymake-goto-prev-error)
(define-key eglot-mode-map (kbd "C-c r") 'eglot-rename))) (define-key eglot-mode-map (kbd "C-c r") 'eglot-rename)))
#+end_src #+end_src
@ -4338,8 +4335,6 @@ explains why he started [[https://pypi.org/project/ruff/][Ruff]] in the post [[h
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]] 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 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]]. 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]].
The [[https://packaging.python.org/en/latest/tutorials/packaging-projects/][packaging Python projects tutorial]] and the [[https://github.com/pypa/sampleproject][Python sample project]] walk you
through the process of writing a [[https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml][pyproject.toml]] file.
Listing [[lst:setup-cfg-kickoff][kickoff setup.cfg proposal]] implements the [[https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html][using black with other tools]] Listing [[lst:setup-cfg-kickoff][kickoff setup.cfg proposal]] implements the [[https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html][using black with other tools]]
rules which make [[https://flake8.pycqa.org/en/latest/][flake8]] or [[https://pycodestyle.pycqa.org/en/latest/][pycodestyle]] agree with [[https://black.readthedocs.io/en/stable/index.html][black's uncompromising style]]. rules which make [[https://flake8.pycqa.org/en/latest/][flake8]] or [[https://pycodestyle.pycqa.org/en/latest/][pycodestyle]] agree with [[https://black.readthedocs.io/en/stable/index.html][black's uncompromising style]].