Skip to content

Sync emacs-the-best-python-editor with the updated tutorial - #844

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/emacs-the-best-python-editor-20260916
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/emacs-the-best-python-editor-20260916

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Brings the companion folder in line with the current state of Emacs: The Best Python Editor? after this maintenance cycle.

What changed

init.el — matches the two code-block edits made in the update draft:

  • '("melpa" . "http://melpa.org/packages/") -> '("melpa" . "https://melpa.org/packages/"). MELPA's own getting-started instructions use HTTPS exclusively and modern Emacs expects TLS for package archives (install-drift issue on the card).
  • (global-linum-mode t) -> (global-display-line-numbers-mode t). linum.el was made obsolete in Emacs 29.1 in favour of display-line-numbers-mode; on a current Emacs the old line silently does nothing unless you (require 'linum) first (deprecated-api issue on the card).

PyEval/Pipfile + PyEval/Pipfile.lock — the article's dependencies field moved from python==3.7 to python==3.14 this cycle, but the Pipfile still declared python_version = "3.6" and the lock pinned 2019-era tooling (black==19.3b0, jedi==0.15.1) that cannot install on a supported Python. Bumped python_version to 3.14 and regenerated the lock with pipenv, which re-pins the dev tooling to autopep8==2.3.2, black==26.5.1, jedi==0.20.0. [packages] stays empty — the tutorial code is pure standard library.

No Python source changed. sieve.py already carries the flat inner-loop indentation the article's first Sieve listing was corrected to this cycle, and the PyEval modules were unaffected by the update (the rest of the cycle was links, ref links and prose counts).

How it was verified

  • Python 3.14.6 venv on the article's new pin: sieve.py prints the primes below 100, expr_test.py runs six tests green (matching the article's "a single test case with six tests"), debug-example.py prints 53 -2 * 4 +. All three re-run inside the regenerated pipenv environment as well, and black, autopep8 and jedi all import and report versions there.
  • init.el loaded end to end on GNU Emacs 29.3 with a scratch user-emacs-directory: all eight packages (better-defaults, elpy, ein, flycheck, py-autopep8, blacken, magit, material-theme) installed over https://melpa.org/packages/, elpy-enable ran, and global-display-line-numbers-mode evaluated to t. Byte-compiling the file reports no errors (only the expected free-variable warnings for elpy symbols).
  • Repo gates at the version pinned in the root requirements.txt: uvx ruff@0.14.1 format --check emacs-the-best-python-editor (6 files already formatted) and uvx ruff@0.14.1 check emacs-the-best-python-editor (all checks passed).

🤖 Generated with Claude Code

…s: The Best Python Editor?

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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