Compare commits

...

2 Commits

View File

@ -3943,9 +3943,11 @@ configuration:
#+caption: Setup ~oglot~ for ~python-mode~.
#+name: lst:setup-oglot
#+begin_src emacs-lisp -n :results silent
(when (and (package-installed-p 'oglot)
;; GAV: Is always OK after the second evaluation of the form below.
(if (and (package-installed-p 'oglot)
(require 'oglot nil 'noerror))
(setopt oglot-maybe-ensure-modes '(python-mode)))
(setopt oglot-maybe-ensure-modes '(python-mode))
(package-vc-install '(oglot :url "https://github.com/gav451/oglot.git")))
#+end_src
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]:
@ -4964,6 +4966,8 @@ profile = "black"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
@ -4974,16 +4978,17 @@ select = [
"F", # pyflakes
"UP", # pyupgrade
"W", # pycodestyle
"NPY201", # numpy-2.0 upgrade guide
]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"D202", # no blank lines allowed after function docstring
]
[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
# Local Variables: