Compare commits
2 Commits
8a7f21c0d0
...
f7e6c28ce1
Author | SHA1 | Date | |
---|---|---|---|
f7e6c28ce1 | |||
24ca6c12ba |
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,7 +23,6 @@ nuggy.py
|
|||||||
org-store-link
|
org-store-link
|
||||||
property-syntax-demonstration.org
|
property-syntax-demonstration.org
|
||||||
pyproject.toml
|
pyproject.toml
|
||||||
setup.cfg
|
|
||||||
variables.el
|
variables.el
|
||||||
worg-backend-dependent-execution-update.org
|
worg-backend-dependent-execution-update.org
|
||||||
|
|
||||||
|
46
README.org
46
README.org
@ -5633,11 +5633,8 @@ 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]]
|
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.
|
explains how to setup documentation string checking in the [[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]]
|
Finally, listing [[lst:ruff-nocolor][ruff-nocolor]] pipes the =stdout= output of the [[https://pypi.org/project/ruff/][ruff]] executable
|
||||||
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]].
|
through =cat= to remove escape sequences.
|
||||||
|
|
||||||
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=]:
|
||||||
#+caption: Setup Python mode with =ob-python=.
|
#+caption: Setup Python mode with =ob-python=.
|
||||||
@ -5793,42 +5790,6 @@ convention = "numpy"
|
|||||||
# End:
|
# End:
|
||||||
#+end_src
|
#+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]:
|
||||||
#+caption: Wrap =ruff= to remove color from text output.
|
#+caption: Wrap =ruff= to remove color from text output.
|
||||||
#+header: :tangle-mode (identity #o755)
|
#+header: :tangle-mode (identity #o755)
|
||||||
@ -6969,8 +6930,7 @@ for ~mpv~ while eliminating use of ~mpd~.
|
|||||||
emms-player-mpd-verbose t))
|
emms-player-mpd-verbose t))
|
||||||
|
|
||||||
(with-eval-after-load 'emms-player-mpv
|
(with-eval-after-load 'emms-player-mpv
|
||||||
(setopt emms-player-mpv-ipc-method 'ipc-server
|
(setopt emms-player-mpv-update-metadata t)
|
||||||
emms-player-mpv-update-metadata t)
|
|
||||||
;; Uncomment the next two lines in case of too many broken YouTube links:
|
;; 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 "--ytdl-format=best" 'append)
|
||||||
(add-to-list 'emms-player-mpv-parameters "--config=no" 'append)
|
(add-to-list 'emms-player-mpv-parameters "--config=no" 'append)
|
||||||
|
Loading…
Reference in New Issue
Block a user