<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/maint/check_doc_features, branch arti-v1.3.2</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-10-29T18:16:42Z</updated>
<entry>
<title>Adjust docsrs exception and documentation for unix::SocketAddr</title>
<updated>2024-10-29T18:16:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-10-29T18:10:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f31adcae1e035f82d31499d90c07c289808e4fff'/>
<id>urn:sha1:f31adcae1e035f82d31499d90c07c289808e4fff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>python: Split lines over 99 chars long</title>
<updated>2024-10-24T13:51:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-10-24T13:50:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8e996ae50379fb72ff95947b318397c6c5db521c'/>
<id>urn:sha1:8e996ae50379fb72ff95947b318397c6c5db521c</id>
<content type='text'>
The `black` formatter did most line wrapping for us, and we accept
its default of 88 characters there, but for comments and docstrings
(which black doesn't wrap) we allow up to 99 characters.
</content>
</entry>
<entry>
<title>Run "black" to reformat all our python</title>
<updated>2024-10-24T12:30:47Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-10-24T12:25:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bf7e7056f97be0015aa3643ab9c7aa564f17bbe5'/>
<id>urn:sha1:bf7e7056f97be0015aa3643ab9c7aa564f17bbe5</id>
<content type='text'>
"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
```
</content>
</entry>
<entry>
<title>rtcompat: Add definitions for unix::SocketAddr.</title>
<updated>2024-09-24T13:10:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-09-18T22:42:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=426c9e5a01f998bff3f8ee2148d2259ca13ea7c3'/>
<id>urn:sha1:426c9e5a01f998bff3f8ee2148d2259ca13ea7c3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Remove unnecessary docsrs cfg_attr.</title>
<updated>2024-08-07T10:30:45Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-07T10:30:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=20003ae47bc5c15814e107d2a6a64712f860d186'/>
<id>urn:sha1:20003ae47bc5c15814e107d2a6a64712f860d186</id>
<content type='text'>
The module is correctly documented as "only available on crate feature
restricted-discovery" without it.
</content>
</entry>
<entry>
<title>maint/check_doc_features: Add restricted_discovery to additional_required.</title>
<updated>2024-08-06T15:29:44Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-06T15:29:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=68e074cb42cf1271f8550df1a0a35ca91e8c1aba'/>
<id>urn:sha1:68e074cb42cf1271f8550df1a0a35ca91e8c1aba</id>
<content type='text'>
The script isn't handling the `cfg_attr` on `pub mod restricted_discovery`
very well, so we need to use the `additional_required` escape hatch.
</content>
</entry>
<entry>
<title>maint/check_doc_features: Include ; in end of item pattern.</title>
<updated>2024-08-06T14:50:20Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-08-06T14:33:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b8e487ea9ca0bdf3278be2b0f01c780d13517bb6'/>
<id>urn:sha1:b8e487ea9ca0bdf3278be2b0f01c780d13517bb6</id>
<content type='text'>
This makes the script work on `cfg_attr`s applied to `mod` declarations
ending in `;`.

Without this change, the script fails with
```
processing tor-hsservice
    res += fn(os.path.join(dir_, file))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builds/nickm/arti/./maint/check_doc_features", line 112, in extract_cfg_attr
    end = min(subline.find(pat) for pat in ' (&lt;' if subline.find(pat) !=-1)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: min() arg is an empty sequence
```

when run on code with `cfg_attr`s applied to `mod` declarations.

Note: this change just improves the UX a bit, but doesn't actually fix
the issue: the script still isn't able to handle `cfg_attr`'d `mod`s: it
assumes all `#[cfg_attr(docsrs, ..)]` statements are applied to
feature-gated `pub use`s, and if there aren't any (such as in the case
of `cfg_attr`d modules, it assumes the feature gating is missing.
</content>
</entry>
<entry>
<title>Rename list_crates_publish to list_crates</title>
<updated>2024-05-08T16:51:07Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-05-08T16:50:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=176fea6716120d892c26f7d5f090b08975bc18a6'/>
<id>urn:sha1:176fea6716120d892c26f7d5f090b08975bc18a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint/check_doc_features: Use new list_crates_publish (nfc)</title>
<updated>2024-05-08T15:05:12Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-05-08T15:05:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5dbc5c0e026d30003988a81c0656d1afb49a9d64'/>
<id>urn:sha1:5dbc5c0e026d30003988a81c0656d1afb49a9d64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename bucket-array-api feature to bucket-array</title>
<updated>2024-05-07T18:52:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T18:52:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0ef90866793c1529a3cfb697fd834181e684b451'/>
<id>urn:sha1:0ef90866793c1529a3cfb697fd834181e684b451</id>
<content type='text'>
</content>
</entry>
</feed>
