Skip to content

Instantly share code, notes, and snippets.

View doolio's full-sized avatar

Niall Dooley doolio

  • 19:23 (UTC +01:00)
View GitHub Profile
@doolio
doolio / good_docstrings.py
Last active November 10, 2023 14:11 — forked from dolph/good_docstrings.py
pep257-good-python-docstrings-by-example
#!/usr/bin/env python3
"""Demonstrate high quality docstrings.
Module-level docstrings appear as the first "statement" in a
module. Remember, that while strings are regular Python statements,
comments are not, so an inline comment may precede the module-level
docstring.
After importing a module, you can access this special string object
@doolio
doolio / .dir-locals.el
Last active September 8, 2024 13:43
.dir-locals.el for use with the Emacs Eglot LSP client and python-lsp-server (pylsp) LSP server
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
;;; Commentary:
;; .dir-locals.el for use with the Emacs Eglot LSP client and
;; python-lsp-server (pylsp) LSP server v1.10.0.
;; Default values in accordance with
;; https://github.com/python-lsp/python-lsp-server/blob/v1.10.0/CONFIGURATION.md