23

Was going through a Python tutorial, but it seems kinda dated. Wanted to know if people regularly use docstrings in the workforce. Or are they somewhat irrelevant because you can convey most of that info via comments and context? Do jobs make you use them?

you are viewing a single comment's thread
view the rest of the comments
[-] mundane@feddit.nu 17 points 4 days ago

At my work we use linters that refuse code with missing or bad docstrings.

[-] gratux@lemmy.blahaj.zone 4 points 4 days ago

Can you share what linters you use?

[-] mundane@feddit.nu 17 points 4 days ago

Most projects are migrating towards Ruff. All in one and speedy.

[-] gid@lemmy.blahaj.zone 3 points 4 days ago

Yeah, I just moved our linting/format checking pipeline to ruff and it's been painless and fast.

load more comments (1 replies)
this post was submitted on 05 Apr 2025
23 points (92.6% liked)

Python

6981 readers
73 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS