Remove obsolete Python related listings

This commit is contained in:
Gerard Vermeulen 2024-06-07 14:01:02 +02:00
parent 24ca6c12ba
commit f7e6c28ce1
2 changed files with 2 additions and 42 deletions

1
.gitignore vendored
View File

@ -23,7 +23,6 @@ nuggy.py
org-store-link
property-syntax-demonstration.org
pyproject.toml
setup.cfg
variables.el
worg-backend-dependent-execution-update.org

View File

@ -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]]
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]]
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.
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.
#+caption[Setup Python mode with =ob-python=]:
#+caption: Setup Python mode with =ob-python=.
@ -5793,42 +5790,6 @@ 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)