Python v2021.11.0 Release Notes
Release Date: 2021-11-04 // over 2 years ago-
β¨ Enhancements
β 1. Improve setting description for enabling A/B tests. (Thanks Thi Le) (#7793) β 1. Support
expectedFailure
when runningunittest
tests usingpytest
. (#8427) π 1. Support environment variable substitution inpython
property forlaunch.json
. (#12289) β‘οΈ 1. Update homebrew instructions to install python 3. (thanks Carolinekung2 ) (#17590)π Fixes
β 1. Reworded message for A/B testing in the output channel to "Experiment 'X' is active/inactive". (Thanks Vidushi Gupta for the contribution) (#6352)
- Change text to "Select at workspace level" instead of "Entire workspace" when selecting or clearing interpreters in a multiroot folder scenario. (Thanks Quynh Do) (#10737) π± 1. Fix unresponsive extension issues caused by discovery component. (#11924) π 1. Remove duplicate 'Run Python file' commands in command palette. (#14562) π 1. Change drive first before changing directory in windows, to anticipate running file outside working directory with different storage drive. (thanks afikrim) (#14730) π 1. Support installing Insiders extension in remote sessions. (#15145)
- If the executeInFileDir setting is enabled, always change to the script directory before running the script, even if the script is in the Workspace folder. (thanks (acash715)[https://github.com/acash715]) (#15181)
- replaceAll for replacing separators. (thanks Aliva Das) (#15288)
- When activating environment, creating new Integrated Terminal doesn't take selected workspace into account. (Thanks Vidushi Gupta for the contribution) (#15522)
- Fix truncated mypy errors by setting
--no-pretty
. (thanks Peter Lithammer) (#16836) - Renamed the commands in the Run/Debug button of the editor title. (thanks (AnalΓa Bannura)[https://github.com/analiabs] and (Anna Arsentieva)[https://github.com/arsentieva])
(#17019)
β
1. Fix for
pytest
run all tests when usingpytest.ini
. (#17546) β‘οΈ 1. Ensures test node is updated whenunittest
sub-tests are used. (#17561) β‘οΈ 1. Update debugpy to 1.5.1 to ensure user-unhandled exception setting is false by default. (#17789) π 1. Ensure we filter out unsupported features in web scenario usingshellExecutionSupported
context key. (#17811) π 1. Removepython.condaPath
from workspace scope. (#17819) β‘οΈ 1. Make updateTestItemFromRawData async to prevent blocking the extension. (#17823) - Semantic colorization can sometimes require reopening or scrolling of a file. (#17878)
Code Health
π 1. Remove TSLint comments since we use ESLint. (#4060) π 1. Remove unused SHA512 hashing code. (#7333) π¦ 1. Remove unused packages. (#16840) π 1. Remove old discovery code and discovery experiments. (#17795)
- Do not query for version and kind if it's not needed when reporting an issue. (#17815) π 1. Remove Microsoft Python Language Server support from the extension. (#17834)
- Bump
packaging
from 21.0 to 21.2. (#17886)
Thanks
Thanks to the following projects which we fully rely on to provide some of our features:
- debugpy
- isort
- jedi and parso
- jedi-language-server
- Microsoft Python Language Server
- π Pylance
- exuberant ctags (user-installed)
- rope (user-installed)
Also thanks to the various projects we provide integrations with which help π make this extension useful:
- π Debugging support: Django, Flask, gevent, Jinja, Pyramid, PySpark, Scrapy, Watson
- Formatting: autopep8, black, yapf
- π Interpreter support: conda, direnv, pipenv, poetry, pyenv, venv, virtualenv
- π Linting: bandit, flake8, mypy, prospector, pylint, pydocstyle, pylama
- β Testing: pytest, unittest
And finally thanks to the Python development team and community for creating a fantastic programming language and community to be a part of!