summaryrefslogtreecommitdiff
path: root/maint/extract-md-links
Commit message (Collapse)AuthorAgeFilesLines
* Python: simple annotations to allow mypy to pass.Nick Mathewson2024-10-241-3/+4
|
* Run "black" to reformat all our pythonNick Mathewson2024-10-241-11/+19
| | | | | | | | | | | | | | | | | "Black" is an "opinionated" python formatter, whose opinionatedness is somewhat in the spirit of rustfmt. This MR runs black with default settings on all of our python code in Arti. It was produced by the following commands ``` # Everything in python/ black python/ # Everything with a .py extension fd '.py$' -X black # Everything with a python shebang. git grep -l '#! */usr/bin/env *python' | xargs black ```
* maint/extract-md-links: Use /usr/bin/env for more flexibility.Gabriela Moldovan2024-06-051-1/+1
| | | | | | | | I needed to use a virtual env to run this script (it doesn't work with the mistune version packaged by arch), but found myself unable to without changing the interpreter directive in `maint/extract-md-links`. Closes #1460
* maint/extract-md-links: New scriptIan Jackson2024-05-021-0/+117
This will be used by gen_md_links, instead of the regexp-based ad-hoc parser there. The existing parser gets wrong things like " `#[must_use]` ", thinking that's a link. Use a proper Markdown parser. But, we must commit some abuse, sadly.