Compare commits
2 Commits
796d0336b4
...
d0c0942d1d
Author | SHA1 | Date | |
---|---|---|---|
d0c0942d1d | |||
7c96b2e2be |
35
README.org
35
README.org
@ -3943,9 +3943,11 @@ configuration:
|
|||||||
#+caption: Setup ~oglot~ for ~python-mode~.
|
#+caption: Setup ~oglot~ for ~python-mode~.
|
||||||
#+name: lst:setup-oglot
|
#+name: lst:setup-oglot
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+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.
|
||||||
(require 'oglot nil 'noerror))
|
(if (and (package-installed-p 'oglot)
|
||||||
(setopt oglot-maybe-ensure-modes '(python-mode)))
|
(require 'oglot nil 'noerror))
|
||||||
|
(setopt oglot-maybe-ensure-modes '(python-mode))
|
||||||
|
(package-vc-install '(oglot :url "https://github.com/gav451/oglot.git")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]:
|
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]:
|
||||||
@ -4964,26 +4966,29 @@ profile = "black"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
"ARG", # flake8-unused-arguments
|
"ARG", # flake8-unused-arguments
|
||||||
"B", # flake8-bugbear
|
"B", # flake8-bugbear
|
||||||
"C", # mccabe
|
"C", # mccabe
|
||||||
"C4", # flake8-comprehensions
|
"C4", # flake8-comprehensions
|
||||||
"E", # pycodestyle
|
"E", # pycodestyle
|
||||||
"D", # pydocstyle
|
"D", # pydocstyle
|
||||||
"F", # pyflakes
|
"F", # pyflakes
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
"W", # pycodestyle
|
"W", # pycodestyle
|
||||||
]
|
"NPY201", # numpy-2.0 upgrade guide
|
||||||
|
]
|
||||||
ignore = [
|
ignore = [
|
||||||
"B905", # `zip()` without an explicit `strict=` parameter
|
"B905", # `zip()` without an explicit `strict=` parameter
|
||||||
"D202", # no blank lines allowed after function docstring
|
"D202", # no blank lines allowed after function docstring
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.mccabe]
|
[tool.ruff.lint.mccabe]
|
||||||
max-complexity = 15
|
max-complexity = 15
|
||||||
|
|
||||||
[tool.ruff.pydocstyle]
|
[tool.ruff.lint.pydocstyle]
|
||||||
convention = "numpy"
|
convention = "numpy"
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user