Compare commits
No commits in common. "f7e6c28ce1c7c21ada5ae4e81388f61dfe27ba7d" and "8a7f21c0d0bde8a1be3055b23248c2ca033d7f68" have entirely different histories.
f7e6c28ce1
...
8a7f21c0d0
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,6 +23,7 @@ nuggy.py
|
||||
org-store-link
|
||||
property-syntax-demonstration.org
|
||||
pyproject.toml
|
||||
setup.cfg
|
||||
variables.el
|
||||
worg-backend-dependent-execution-update.org
|
||||
|
||||
|
46
README.org
46
README.org
@ -5633,8 +5633,11 @@ The [[https://packaging.python.org/en/latest/tutorials/packaging-projects/][pack
|
||||
through the process of writing a [[https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml][pyproject.toml]] file. [[https://github.com/charliermarsh/ruff#does-ruff-support-numpy--or-google-style-docstrings][Ruff docstring setup]]
|
||||
explains how to setup documentation string checking in the [[https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml][pyproject.toml]] file.
|
||||
|
||||
Finally, listing [[lst:ruff-nocolor][ruff-nocolor]] pipes the =stdout= output of the [[https://pypi.org/project/ruff/][ruff]] executable
|
||||
through =cat= to remove escape sequences.
|
||||
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]].
|
||||
|
||||
Finally, listing [[lst:flake8-nocolor][flake8-nocolor]] and [[lst:ruff-nocolor][ruff-nocolor]] pipe the =stdout= output of the
|
||||
[[https://pypi.org/project/flake8/][flake8]] and [[https://pypi.org/project/ruff/][ruff]] executables through =cat= to remove escape sequences.
|
||||
|
||||
#+caption[Setup Python mode with =ob-python=]:
|
||||
#+caption: Setup Python mode with =ob-python=.
|
||||
@ -5790,6 +5793,42 @@ convention = "numpy"
|
||||
# End:
|
||||
#+end_src
|
||||
|
||||
#+caption[Kickoff =setup.cfg= proposal]:
|
||||
#+caption: Kickoff =setup.cfg= proposal.
|
||||
#+name: lst:setup-cfg-kickoff
|
||||
#+begin_src toml -n :tangle setup.cfg
|
||||
[flake8]
|
||||
docstring-convention = numpy
|
||||
extend-select = B,F,W
|
||||
extend-ignore = W503
|
||||
max-complexity = 15
|
||||
max-line-length = 88
|
||||
|
||||
[pycodestyle]
|
||||
ignore = W503
|
||||
max-line-length = 88
|
||||
|
||||
# Local Variables:
|
||||
# mode: conf-toml
|
||||
# End:
|
||||
#+end_src
|
||||
|
||||
#+caption[Wrap =flake8= to remove color from text output]:
|
||||
#+caption: Wrap =flake8= to remove color from text output.
|
||||
#+header: :tangle-mode (identity #o755)
|
||||
#+name: lst:flake8-nocolor
|
||||
#+begin_src shell -n :eval never :tangle ~/bin/flake8-nocolor
|
||||
#!/bin/sh
|
||||
|
||||
flake8 "$@" | cat
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
#+end_src
|
||||
|
||||
#+caption[Wrap =ruff= to remove color from text output]:
|
||||
#+caption: Wrap =ruff= to remove color from text output.
|
||||
#+header: :tangle-mode (identity #o755)
|
||||
@ -6930,7 +6969,8 @@ for ~mpv~ while eliminating use of ~mpd~.
|
||||
emms-player-mpd-verbose t))
|
||||
|
||||
(with-eval-after-load 'emms-player-mpv
|
||||
(setopt emms-player-mpv-update-metadata t)
|
||||
(setopt emms-player-mpv-ipc-method 'ipc-server
|
||||
emms-player-mpv-update-metadata t)
|
||||
;; Uncomment the next two lines in case of too many broken YouTube links:
|
||||
(add-to-list 'emms-player-mpv-parameters "--ytdl-format=best" 'append)
|
||||
(add-to-list 'emms-player-mpv-parameters "--config=no" 'append)
|
||||
|
Loading…
Reference in New Issue
Block a user