<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/maint/add_warning, branch arti-v1.3.0</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.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-10-24T13:51:32Z</updated>
<entry>
<title>python: Use "a not in b" rather than "not a in b".</title>
<updated>2024-10-24T13:51:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-10-24T13:26:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dec09eb7d7e424b1e008d01977aa35ca7921b30a'/>
<id>urn:sha1:dec09eb7d7e424b1e008d01977aa35ca7921b30a</id>
<content type='text'>
Due to precedence, both work the same, but the former is preferred.
</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>Fix typos</title>
<updated>2024-09-03T08:09:02Z</updated>
<author>
<name>Dimitris Apostolou</name>
<email>dimitris.apostolou@icloud.com</email>
</author>
<published>2024-09-03T08:09:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=676f913463b7d84f34dd6101b99d03ef79cf57ad'/>
<id>urn:sha1:676f913463b7d84f34dd6101b99d03ef79cf57ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add_warning: fix a python mistake.</title>
<updated>2024-05-07T16:43:23Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T16:43:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=23ff845bbec0d2f7b616f0baea63e2b0be72c536'/>
<id>urn:sha1:23ff845bbec0d2f7b616f0baea63e2b0be72c536</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add_warning: Add an "Example lints" list</title>
<updated>2024-05-07T15:15:26Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T15:15:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=48ece29f828faa4c20452bfa252b34062dcaf173'/>
<id>urn:sha1:48ece29f828faa4c20452bfa252b34062dcaf173</id>
<content type='text'>
This is the same as the TEST_LINTS exception list, plus the
nightly exception from our main lints list.  It matches what
we have in crates/examples/*.rs.
</content>
</entry>
<entry>
<title>add_warning: Use regexes and maps to find lists of lints</title>
<updated>2024-05-07T15:06:00Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-07T15:06:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c98990a2076746d3d362197b8ad9c4d2d90b6ecf'/>
<id>urn:sha1:c98990a2076746d3d362197b8ad9c4d2d90b6ecf</id>
<content type='text'>
This keeps our begin/end lines consistent, and lets us add new lists.
</content>
</entry>
<entry>
<title>add_warning: Allow suppression of marked lines, and avoid cfg().</title>
<updated>2024-05-06T13:25:17Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-06T13:05:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=27a603fda9c5ab671ae39abeb09fc506ea69824a'/>
<id>urn:sha1:27a603fda9c5ab671ae39abeb09fc506ea69824a</id>
<content type='text'>
Sometimes we want to enforce different lints
depending on whether we're running CI.
Until now we've been using `#[cfg(not(ci_arti_FOO))]` for this,
but that approach now seems to be somewhat deprecated,
and to cause warnings on nightly.  (See #1395.)

Instead, I'm tweaking the add_warning script
so that it can conditionally suppress lines depending on
a command-line argument that it receives.
</content>
</entry>
<entry>
<title>maint/add_warning: permit clippy::mixed_attributes_style in tests.</title>
<updated>2024-03-13T16:30:41Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-03-13T16:25:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=166121d1967c7dd0ce71f1da3dc9504ce422eb9a'/>
<id>urn:sha1:166121d1967c7dd0ce71f1da3dc9504ce422eb9a</id>
<content type='text'>
This is a new warning on nightly.  It triggers for every one of our
test blocks that starts with `#[cfg(test)]` and then goes on to
have an `#![allow(...)]` block at the start of the module.
</content>
</entry>
<entry>
<title>deny clippy::unchecked_duration_subtraction</title>
<updated>2024-02-29T17:16:49Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2024-02-29T17:06:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ac5b36027ca825d27ef466501c660ce498fd9e3c'/>
<id>urn:sha1:ac5b36027ca825d27ef466501c660ce498fd9e3c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clippy: Suppress needless_pass_by_value in tests</title>
<updated>2023-08-23T09:34:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T14:26:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ce8b0184ec6d896a7c7d136467f40db34a6b61fd'/>
<id>urn:sha1:ce8b0184ec6d896a7c7d136467f40db34a6b61fd</id>
<content type='text'>
Rationale: same as for useless_vec, as in 01cb7ee0a112.

Prompted by reading a commit where someone did makework to get rid of
an occurrence of this warning.
</content>
</entry>
</feed>
