Sync emacs-the-best-python-editor with the updated tutorial - #844
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
…s: The Best Python Editor? Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-driftissue on the card).(global-linum-mode t)->(global-display-line-numbers-mode t).linum.elwas made obsolete in Emacs 29.1 in favour ofdisplay-line-numbers-mode; on a current Emacs the old line silently does nothing unless you(require 'linum)first (deprecated-apiissue on the card).PyEval/Pipfile+PyEval/Pipfile.lock— the article'sdependenciesfield moved frompython==3.7topython==3.14this cycle, but the Pipfile still declaredpython_version = "3.6"and the lock pinned 2019-era tooling (black==19.3b0,jedi==0.15.1) that cannot install on a supported Python. Bumpedpython_versionto3.14and regenerated the lock with pipenv, which re-pins the dev tooling toautopep8==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.pyalready carries the flat inner-loop indentation the article's first Sieve listing was corrected to this cycle, and thePyEvalmodules were unaffected by the update (the rest of the cycle was links, ref links and prose counts).How it was verified
sieve.pyprints the primes below 100,expr_test.pyruns six tests green (matching the article's "a single test case with six tests"),debug-example.pyprints53 -2 * 4 +. All three re-run inside the regenerated pipenv environment as well, andblack,autopep8andjediall import and report versions there.init.elloaded end to end on GNU Emacs 29.3 with a scratchuser-emacs-directory: all eight packages (better-defaults,elpy,ein,flycheck,py-autopep8,blacken,magit,material-theme) installed overhttps://melpa.org/packages/,elpy-enableran, andglobal-display-line-numbers-modeevaluated tot. Byte-compiling the file reports no errors (only the expected free-variable warnings for elpy symbols).requirements.txt:uvx ruff@0.14.1 format --check emacs-the-best-python-editor(6 files already formatted) anduvx ruff@0.14.1 check emacs-the-best-python-editor(all checks passed).🤖 Generated with Claude Code