Python v2021.12.0 Release Notes
Release Date: 2021-12-09 // over 2 years ago-
โจ Enhancements
- Python extension should activate on onDebugInitialConfigurations. (thanks Nayana Vinod and Jessica Jolly). (#9557) ๐ 1. Declare limited support when running in virtual workspaces by only supporting language servers. (#17519)
- Add a "Do not show again" option to the formatter installation prompt.
(#17937)
๐ฆ 1. Add the ability to install
pip
if missing, when installing missing packages from theJupyter Extension
. (#17975) ๐ 1. Declare limited support for untrusted workspaces by only supporting Pylance. (#18031) โก๏ธ 1. Update to latest jedi language server. (#18051) - Add language status item indicating that extension works partially in virtual and untrusted workspaces. (#18059)
๐ Fixes
โ 1. Partial fix for using the same directory as discovery when running tests. (thanks Brian Rutledge) (#9553)
- Handle decorators properly when using the
Run Selection/Line in Python Terminal
command. (#15058) โ 1. Don't interpret--rootdir
as a test folder forpytest
. (thanks Brian Rutledge) (#16079) ๐ง 1. Ensure debug configuration env variables overwrite env variables defined in .env file. (#16984) โ 1. Fix forpytest
run all tests when usingpytest.ini
andcwd
. (thanks Brian Rutledge) (#17546) โ 1. When parsing pytest node ids with parameters, use native pytest information to separate out the parameter decoration rather than try and parse the nodeid as text. (thanks Martijn Pieters) (#17676) ๐ 1. Do not process system Python 2 installs on macOS Monterey. (#17870) ๐ 1. Remove duplicate "Clear Workspace Interpreter Setting" command from the command palette. (#17890) ๐ 1. Ensure that path towards extenal tools like linters are not synched between machines. (thanks Sorin Sbarnea) (#18008) โฑ 1. Increase timeout for activation of conda environments from 30s to 60s. (#18017)
Code Health
โ 1. Removing experiments for refresh and failed tests buttons. (#17868) ๐ง 1. Remove caching debug configuration experiment only. (#17895) ๐ 1. Remove "join mailing list" notification experiment. (#17904) ๐ 1. Remove dependency on
winston
logger. (#17921)- Bump isort from 5.9.3 to 5.10.0.
(#17923)
๐ 1. Remove old discovery code and discovery experiments.
(#17962)
๐ 1. Remove dependency on
azure-storage
. (#17972) ๐ 1. Ensure telemetry correctly identifies when users set linter paths. (#18019)
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!