fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.7K
active users

#flake8_aaa

0 posts0 participants0 posts today
James C :python:<p>Got the error captured - had to update the GitHub issue template as it was well out of date.</p><p><a href="https://github.com/jamescooke/flake8-aaa/issues/237" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/237</span></a></p><p><a href="https://fosstodon.org/tags/Flake8_AAA" class="mention hashtag" rel="tag">#<span>Flake8_AAA</span></a></p>
James C :python:<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@leblancfg" class="u-url mention">@<span>leblancfg</span></a></span> But but but but…</p><p>1. <a href="https://fosstodon.org/tags/Flake8_AAA" class="mention hashtag" rel="tag">#<span>Flake8_AAA</span></a> isn’t at version 1.0 yet. It feels like I’m not ready to drop development of it yet.<br />2. I’m definitely not ready to rebuild it in Rust.</p><p>I’m still working out all the nuances of the AAA pattern - even after years of part time development. 🙏🏻</p>
James C :python:<p>Found a bug in <a href="https://fosstodon.org/tags/Flake8_AAA" class="mention hashtag" rel="tag">#<span>Flake8_AAA</span></a> yesterday regarding how it processes blank lines when checking if there are blank lines in blocks.</p><p><a href="https://flake8-aaa.readthedocs.io/en/stable/error_codes/AAA05-blank-line-in-block.html" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">flake8-aaa.readthedocs.io/en/s</span><span class="invisible">table/error_codes/AAA05-blank-line-in-block.html</span></a></p><p>If the blank line is followed by a `# comment` line, then Flake8-AAA doesn’t see it 🙈</p><p>While trying to check if the bug is valid, I’ve ended up yak shaving…</p>
James C :python:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@hynek" class="u-url mention">@<span>hynek</span></a></span> Ruff is so strange because of it’s &quot;downstream&quot; relationship with Flake8 and plugins.</p><p>This issue has been open for nearly a year: <a href="https://github.com/astral-sh/ruff/issues/3462" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/astral-sh/ruff/issu</span><span class="invisible">es/3462</span></a> 👈🏻 a request to implement the <a href="https://fosstodon.org/tags/Flake8_AAA" class="mention hashtag" rel="tag">#<span>Flake8_AAA</span></a> plugin (which I maintain) for ruff. The issue doesn’t even link to the parent repo - and part of me if worried about the incoming bug reports like &quot;this breaks in ruff&quot; but where I can’t reproduce in Flake8.</p><p>This looks to me like a system that drives fragmentation - right? 😬</p>
James C :python:<p>I voted &quot;patch is fine&quot;.</p><p>As shown in the <a href="https://fosstodon.org/tags/Flake8_AAA" class="mention hashtag" rel="tag">#<span>Flake8_AAA</span></a> changelog, I’ve been inconsistent, but an example of a patch change is at version 0.12.2 when dropping py3.6.</p><p><a href="https://github.com/jamescooke/flake8-aaa/blob/master/CHANGELOG.rst" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/blob/master/CHANGELOG.rst</span></a></p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 📈 </p><p>No new features (again) - just explicit support for Python 3.12 and command line interface dropped to make future extensions easier 🙏 </p><p><a href="https://pypi.org/project/flake8-aaa/0.17.0/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/flake8-aaa/0.</span><span class="invisible">17.0/</span></a></p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 🛩️ </p><p>No features provided in this new version 0.16.0... Just support dropped for Python 3.7 😅 </p><p><a href="https://github.com/jamescooke/flake8-aaa" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa</span></a></p>
James C :python:<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@cheukting_ho" class="u-url mention">@<span>cheukting_ho</span></a></span> <span class="h-card" translate="no"><a href="https://fosstodon.org/@jugmac00" class="u-url mention">@<span>jugmac00</span></a></span> Would love some help cleaning the <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> code and test examples. There’s this issue which I marked as blocked only until the date arrived: <a href="https://github.com/jamescooke/flake8-aaa/issues/198" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/198</span></a></p><p>The project isn’t blocked or useful in production though - I’m sure there are more urgent and deserving projects that need help 🙏🏻</p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 🚀 </p><p>Main feature in 0.15.0:</p><p>✅ Provide a &quot;large&quot; Act block style option which affects how Flake8-AAA processes context managers that wrap Act nodes.</p><p>TL;DR: If you&#39;re using Black to format your <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> tests, upgrade Flake8-AAA and pass `--aaa-act-block-style=large` to <a href="https://fosstodon.org/tags/flake8" class="mention hashtag" rel="tag">#<span>flake8</span></a> </p><p>More details on Large style Act blocks are in the docs <a href="https://flake8-aaa.readthedocs.io/en/stable/options.html#large-act-block-style" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">flake8-aaa.readthedocs.io/en/s</span><span class="invisible">table/options.html#large-act-block-style</span></a></p>
James C :python:<p>New `--aaa-act-block-style=large` command line option for <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> available on master, which _should_ solve compatibility issues with latest versions of Black 🙏</p><p>I&#39;m going to write up docs and do some more testing for packing a new release.</p><p>Meanwhile, it can be tested by installing the master branch:</p><p>```<br />pip install -e git+<a href="https://github.com/jamescooke/flake8-aaa.git#egg=flake8-aaa" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa.git#egg=flake8-aaa</span></a><br />```</p><p>And pass the command line option: `flake8 --aaa-act-block-style=large src`</p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 🚀 <a href="https://pypi.org/project/flake8-aaa/0.14.1/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/flake8-aaa/0.</span><span class="invisible">14.1/</span></a></p><p>BUT - there is not a single helpful feature for the user in this release... 🙈 </p><p>🔧 A new command line option `--aaa-act-block-style` has been added, but it can only be set to &quot;default&quot;, which is the current behaviour.</p><p>However, this all makes space for a new value called &quot;large&quot; which will help solve the Black compatibility issues in Issue 200 - more info in the POA comment <a href="https://github.com/jamescooke/flake8-aaa/issues/200#issuecomment-1501216082" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/200#issuecomment-1501216082</span></a></p>
James C :python:<p>Having to add a configuration option to <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> so it can handle how Black now wants no blank lines after context managers is super annoying. I’ve felt very blocked by it.</p><p>On top of that I’ve had lots of design doubt because of <span class="h-card" translate="no"><a href="https://hachyderm.io/@nedbat" class="u-url mention">@<span>nedbat</span></a></span> ‘s old post about avoiding Boolean options. 😬</p><p>As much as I’d like to, it’s probably not going to be this:</p><p>—do-stupid-things-because-black=true </p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a></p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 🚀 </p><p>Main feature in 0.14.0:</p><p>✅ Tests ending in &quot;_test.py&quot; will now be found by the plugin. This brings the plugin more in-line with <a href="https://fosstodon.org/tags/pytest" class="mention hashtag" rel="tag">#<span>pytest</span></a> &#39;s discovery mechanism.</p><p><a href="https://pypi.org/project/flake8-aaa/0.14.0/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/flake8-aaa/0.</span><span class="invisible">14.0/</span></a></p>
James C :python:<p>New version of <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> is out 📈 🎈 </p><p>Version 0.13.1 has a small feature to provide explicit Python 3.11 support.</p><p>It also removes the unnecessary upper version bound preventing use with <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> 4 😂 (no idea why I added this all those years ago) <a href="https://github.com/jamescooke/flake8-aaa/commit/8d05b9f95bb69315faac5df60b87ea219dbecf15#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L31-R31" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/commit/8d05b9f95bb69315faac5df60b87ea219dbecf15#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L31-R31</span></a></p><p><a href="https://pypi.org/project/flake8-aaa/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">pypi.org/project/flake8-aaa/</span><span class="invisible"></span></a></p>
James C :python:<p>New <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> 0.13.0 is out 🎉 </p><p>Now properly supporting all <a href="https://fosstodon.org/tags/pytest" class="mention hashtag" rel="tag">#<span>pytest</span></a> context managers and not just `pytest.raises()`.</p><p><a href="https://github.com/jamescooke/flake8-aaa/issues/196" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/196</span></a></p><p><a href="https://pypi.org/project/flake8-aaa/0.13.0/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/flake8-aaa/0.</span><span class="invisible">13.0/</span></a></p>
James C :python:<p>Am feeling disappointed - it looks like the new blank line handling in <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> Black 23 will force <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> to implement a second &quot;less strict&quot; layout for tests that contain context managers like `pytest.raises()` 😞 </p><p>Issue, with a temporary work around, here: <a href="https://github.com/jamescooke/flake8-aaa/issues/200" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/200</span></a></p>
James C :python:<p>Managed to make some progress on adding support for <a href="https://fosstodon.org/tags/pytest" class="mention hashtag" rel="tag">#<span>pytest</span></a> warns() and pytest.deprecated_call() to <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> last night ☺️ <a href="https://github.com/jamescooke/flake8-aaa/pull/199" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/pull/199</span></a></p>
James C :python:<p>PePy shows PyPi downloads per <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> package version - which is super helpful when you (as a package maintainer) want to know how distributed your package&#39;s users are across versions.</p><p>Here&#39;s the graph for Flake8-AAA - super re-assuring to see that the vast majority of downloads are of the latest version.</p><p><a href="https://pepy.tech/project/flake8-aaa?display=weekly&amp;versions=0.12.2&amp;versions=0.%2A" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">pepy.tech/project/flake8-aaa?d</span><span class="invisible">isplay=weekly&amp;versions=0.12.2&amp;versions=0.%2A</span></a></p><p>Hat-tip <span class="h-card" translate="no"><a href="https://fosstodon.org/@brianokken" class="u-url mention">@<span>brianokken</span></a></span> </p><p><a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> <a href="https://fosstodon.org/tags/pypi" class="mention hashtag" rel="tag">#<span>pypi</span></a> <a href="https://fosstodon.org/tags/packaging" class="mention hashtag" rel="tag">#<span>packaging</span></a></p>
James C :python:<p>Had no idea about the <a href="https://fosstodon.org/tags/pytest" class="mention hashtag" rel="tag">#<span>pytest</span></a> `warns()` context manager until this bug was opened in <a href="https://fosstodon.org/tags/flake8_aaa" class="mention hashtag" rel="tag">#<span>flake8_aaa</span></a> <a href="https://github.com/jamescooke/flake8-aaa/issues/196" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/jamescooke/flake8-a</span><span class="invisible">aa/issues/196</span></a></p><p>Reading the docs, it seems there are quite a few Pytest context managers that Flake8-AAA needs to support that I’ve completely overlooked. 😬</p>