apheleia/scripts
Michael Eliachevitch 4a87523f80
Add docformatter which formats Python docstrings to PEP 257 (#267)
Add [docformatter](https://github.com/PyCQA/docformatter) for Python
docstrings.

By default it outputs diffs but changes in-place with `--in-place`. On
successful change it exits with an error code of `3` (found out by
trial), so I had to add a formatter wrapping-script.

Initially I used `--in-place` with the special `in-place` symbol in
apheleia. But now I tried an approach where I transform the diff into
usable stdout using `patch` instead.

Related to #266 , where I had used the example of docformatter to ask
how to add scripts with positive exit codes and @raxod502 showed me the
`phpcs` solution.

---------

Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-12-14 18:46:12 -08:00
..
formatters Add docformatter which formats Python docstrings to PEP 257 (#267) 2023-12-14 18:46:12 -08:00
apheleia-indent.el Add emacs-lisp formatting (#102) 2022-09-03 11:22:35 -07:00
check-line-length.bash Add support for formatters locally installed via yarn 2+ pnp mode (#200) 2023-11-05 12:08:58 -08:00
docker-install.bash Migrate from Semaphore CI to CircleCI 2019-11-16 22:01:04 -08:00
docker-pid1.bash Add formatter tests (#72) 2022-01-05 15:35:12 -08:00
docker-run.bash Add formatter tests (#72) 2022-01-05 15:35:12 -08:00
docker.bash Add formatter tests (#72) 2022-01-05 15:35:12 -08:00