Wow, nice. Thank you!
Would also be nice if I could use some sort of pattern in the --ignore-names option. Apologies if that's already there and I missed it.
Just coming back around on the count thing, in order to use wc -l, you need to ensure that stderr is piped too. Like:
deadcode . --exclude=*/tests,conftest.py --ignore-names-in-files=core/settings.py 2>&1 | wc -l
I ran this against a ~8 month old Django project and it turned up 11 unused names, of which 5 were expected and can be whitelisted. Nice!
I cross-posted to !devops@programming.dev too, hope you don't mind.
Ha! Great catch. Yeah, I'll get that sorted.
🤦♂️
Thank you
I noticed an update from @subrehab@mastodon.social and went and looked.
They talk about it in another post about the library.
Also, a blog post from the new security developer-in-residence himself, Seth Larson, about the announcement.
Looking at the LemmyHttp docs, mentioned above, it looks like you probably want to use the ListCommunities resource with the type_ ListingType of "Subscribed".
To do that with Plemmy, it looks like you want to use LemmyHttp(...).list_communities(type_='Subscribed').
Fair warning, I'm making this comment just from reading docs and source code, I haven't had a chance to try this yet.
Ugh, my apologies folks. Clearly still figuring out how to do this Lemmy/Mastodon federation thing.
Hey, sorry we missed helping out!
Did you get everything sorted? Mind adding a "[Solved]" to the beginning of your post title if so?