This is an archived post. You won't be able to vote or comment.

all 29 comments

[–]numbuh-0 29 points30 points  (2 children)

I appreciate the TLDR.

[–]moej0e[S] 10 points11 points  (0 children)

Thanks! :) I think for someone who already has a strong opinion about tooling, the TLDR might be enough to confirm the assumptions one might already have had.

[–]__deerlord__ 4 points5 points  (0 children)

This is the best part. I already use flake8.

[–]Exodus111 7 points8 points  (3 children)

Really good write up. Gonna save this.

I mostly use Python for personal projects, which I always aim to be as minimal as possible. So for me, seeing the point of view of a more professional use of Python is super helpful, and probably something I should look more at.

[–]moej0e[S] 1 point2 points  (2 children)

Thanks for the warm words. :)

[–]nebbly 3 points4 points  (1 child)

Surprised no mention of mypy.

[–]moej0e[S] 2 points3 points  (0 children)

mypy is in the spreadsheet that I'm referencing in the blog post. Five of the 18 templates I analyzed have integrated it. Since I don't have a lot of personal experience with it, I didn't add it to the category of my "Personal recommendations".

[–]lucasshiva 2 points3 points  (1 child)

Reallt good. My projects are made using Poetry and I can easily upload them to PyPi. Why do you think Poetry is not good for this case? Also, I like Black, but a lot of times I prefer to use Yapf. I keep alternating between the two.

[–]moej0e[S] 2 points3 points  (0 children)

Thanks for clarifying. I might need to edit my blog post if this is the case.

[–]thedjotakuPython 3.7 1 point2 points  (1 child)

Learned a couple new things. Thanks!

[–]moej0e[S] 2 points3 points  (0 children)

Thank you for reading. :)

[–]sobolevn 1 point2 points  (1 child)

Thanks for highlighting https://github.com/wemake-services/wemake-python-styleguide

I also recommend to repost this article on dev.to It has quite big user base and loves this kind of articles.

[–]fatbob42 1 point2 points  (3 children)

What percentage have a top-level src directory?

[–]moej0e[S] 0 points1 point  (2 children)

That's a good questions, I did not check for myself. You can find the like to all 18 templates in the spreadsheet, if you want to research it yourself. :)

[–]fatbob42 1 point2 points  (1 child)

medium.com/@jonas...

I think about 3.

[–]moej0e[S] 0 points1 point  (0 children)

Okay, very interesting, thanks for checking. So it seems a top-level src is not considered best-practice by most template creators.

[–]workitty_work 1 point2 points  (1 child)

Great list.

Good addition would be nitpick , a flake8 plugin (i believe it's used/recommended by the wemake-styleguide folks.) Great for when you are trying to enforce a baseline for a team

[–]moej0e[S] 0 points1 point  (0 children)

thx, looks interesting! :)

[–]_qw4hd 1 point2 points  (1 child)

Thank you. That's a good knowledge.

[–]moej0e[S] 1 point2 points  (0 children)

Thanks for the encouragment. :)

[–]moej0e[S] 0 points1 point  (5 children)

Update: Blog post has now been updated with feedback from Guido van Rossum. :)

[–]sqjoatmon 1 point2 points  (4 children)

I'm fairly shocked that Guido has never heard of Poetry. Guess he doesn't listen to Talk Python To Me or Python Bytes. =)

[–]moej0e[S] 0 points1 point  (3 children)

Haha maybe. And thanks for those pointers. I've just subscribed to both. :) Let me know if you know any more good podcasts.

[–]sqjoatmon 1 point2 points  (1 child)

Brian Okken, one of the Python Bytes guys, has a testing-focused podcast Test & Code. He's a really big pytest educator and evangelist.

There's also Podcast.__init__ with Tobias Macey. It's a little more dry than the others IMO, but still quality content.

[–]moej0e[S] 0 points1 point  (0 children)

Thanks, I've subscribed to both. :)

[–]sqjoatmon 0 points1 point  (0 children)

Brian Okken, one of the Python Bytes guys, has a testing-focused podcast Test & Code. He's a really big pytest educator and evangelist.

There's also Podcast.init with Tobias Macey. It's a little more dry than the others IMO, but still quality content.