Skip to content

Disable pylint docstring checks in the Python template - #505

Merged
kylehoehns merged 1 commit into
mainfrom
python-disable-docstring-lint
Nov 20, 2026
Merged

kylehoehns merged 1 commit into
mainfrom
python-disable-docstring-lint

Conversation

@kylehoehns

Copy link
Copy Markdown
Contributor

Summary

This turns off pylint's "missing docstring" warnings in the Python interview template. Candidates should spend their time solving the problem, not writing docstrings to make the linter happy.

The change lives in python/pyproject.toml. Both the pylint command and the VS Code pylint extension read that file.

+[tool.pylint."messages control"]
+disable = [
+    "missing-module-docstring",   # C0114
+    "missing-class-docstring",    # C0115
+    "missing-function-docstring", # C0116
+]

All three checks are turned off. They are the same warning at file, class, and function level.

Evidence

Ran uvx pylint@4.0.9 app tests from python/. That is the same version as in pyproject.toml.

  • Before:
    app/main.py:1:0: C0116: Missing function or method docstring
    tests/test_main.py:1:0: C0114: Missing module docstring
    tests/test_main.py:4:0: C0116: Missing function or method docstring
    Your code has been rated at 4.29/10
    
    After:
    Your code has been rated at 10.00/10
    

Undo and Impact

Door: two-way

Revert the commit to bring the warnings back.

Blast Radius: tiny

Only the python/ template is affected. Every other pylint check still runs. jupyter-notebook/ is not changed.

🤖 Generated with Claude Code

Candidates in an interview shouldn't spend time writing docstrings to
quiet the linter. Turn off C0114/C0115/C0116 (module, class, function)
in pyproject.toml so both CLI pylint and the VS Code extension pick it up.
@kylehoehns
kylehoehns marked this pull request as ready for review November 20, 2026 18:44
@kylehoehns
kylehoehns merged commit 93bf91a into main Nov 20, 2026
13 checks passed
@kylehoehns
kylehoehns deleted the python-disable-docstring-lint branch November 20, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant