Sourced from click's releases.
\n\n\n8.1.0
\nThis is a feature release, which includes new features and removes previously deprecated features. The 8.1.x branch is now the supported bugfix branch, the 8.0.x branch will become a tag marking the end of support for that branch. We encourage everyone to upgrade, and to use a tool such as pip-tools to pin all dependencies and control upgrades.
\n\n
Sourced from click's changelog.
\n\n\nVersion 8.1.0
\nReleased 2022-03-28
\n\n
\n\n- \n
\nDrop support for Python 3.6. :pr:
\n2129
- \n
\nRemove previously deprecated code. :pr:
\n2130
\n
\n- \n
Group.resultcallback
is renamed toresult_callback
.- \n
autocompletion
parameter toCommand
is renamed to\nshell_complete
.- \n
get_terminal_size
is removed, use\nshutil.get_terminal_size
instead.- \n
get_os_args
is removed, usesys.argv[1:]
instead.- \n
\nRely on :pep:
\n538
and :pep:540
to handle selecting UTF-8 encoding\ninstead of ASCII. Click's locale encoding detection is removed.\n:issue:2198
- \n
\nSingle options boolean flags with
\nshow_default=True
only show\nthe default if it isTrue
. :issue:1971
- \n
\nThe
\ncommand
andgroup
decorators can be applied with or\nwithout parentheses. :issue:1359
- \n
\nThe
\nPath
type can check whether the target is executable.\n:issue:1961
- \n
\n\n
Command.show_default
overridesContext.show_default
, instead\nof the other way around. :issue:1963
- \n
\nParameter decorators and
\n@group
handlescls=None
the same as\nnot passingcls
.@option
handleshelp=None
the same as\nnot passinghelp
. :issue:[#1959](https://github.com/pallets/click/issues/1959)
- \n
\nA flag option with
\nrequired=True
requires that the flag is\npassed instead of choosing the implicit default value. :issue:1978
- \n
\nIndentation in help text passed to
\nOption
andCommand
is\ncleaned the same as using the@option
and@command
\ndecorators does. A command'sepilog
andshort_help
are also\nprocessed. :issue:1985
- \n
\nStore unprocessed
\nCommand.help
,epilog
andshort_help
\nstrings. Processing is only done when formatting help text for\noutput. :issue:2149
- \n
\nAllow empty str input for
\nprompt()
when\nconfirmation_prompt=True
anddefault=""
. :issue:2157
- \n
\nWindows glob pattern expansion doesn't fail if a value is an invalid\npattern. :issue:
\n2195
- \n
\nIt's possible to pass a list of
\nparams
to@command
. Any\nparams defined with decorators are appended to the passed params.\n:issue:2131
.- \n
\n\n
@command
decorator is annotated as returning the correct type if\nacls
argument is used. :issue:2211
- \n
\nA
\nGroup
withinvoke_without_command=True
andchain=False
\nwill invoke its result callback with the group function's return\nvalue. :issue:2124
... (truncated)
\ne4aceee
Merge pull request #2224 from pallets/release-8.1.0f8d811e
release version 8.1.020c88f0
Merge pull request #2223 from pallets/env-var8d7f03d
treat empty auto_envvar as Noneef11be6
Merge pull request #2041 from spanglerco/shell-completion-option-valuesf2e579a
shell completion prioritizes option values over new optionsd251cb0
Merge pull request #2219 from pallets/paramtype-namee003331
fix ParamType.to_info_dict() with no name19be092
Merge pull request #2217 from pallets/group-return7d3a871
group without command passes return value to result callbackSourced from black's releases.
\n\n\n22.3.0
\nPreview style
\n\n
\n- Code cell separators
\n#%%
are now standardised to# %%
(#2919)- Remove unnecessary parentheses from
\nexcept
statements (#2939)- Remove unnecessary parentheses from tuple unpacking in
\nfor
loops (#2945)- Avoid magic-trailing-comma in single-element subscripts (#2942)
\nConfiguration
\n\n
\n- Do not format
\n__pypackages__
directories by default (#2836)- Add support for specifying stable version with
\n--required-version
(#2832).- Avoid crashing when the user has no homedir (#2814)
\n- Avoid crashing when md5 is not available (#2905)
\n- Fix handling of directory junctions on Windows (#2904)
\nDocumentation
\n\n
\n- Update pylint config documentation (#2931)
\nIntegrations
\n\n
\n- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896)
\nOutput
\n\n
\n- In verbose, mode, log when Black is using user-level config (#2861)
\nPackaging
\n\n
\n- Fix Black to work with Click 8.1.0 (#2966)
\n- On Python 3.11 and newer, use the standard library's
\ntomllib
instead oftomli
\n(#2903)- \n
black-primer
, the deprecated internal devtool, has been removed and copied to a\nseparate repository (#2924)Parser
\n\n
\n- Black can now parse starred expressions in the target of
\nfor
andasync for
\nstatements, e.gfor item in *items_1, *items_2: pass
(#2879).
Sourced from black's changelog.
\n\n\n22.3.0
\nPreview style
\n\n
\n- Code cell separators
\n#%%
are now standardised to# %%
(#2919)- Remove unnecessary parentheses from
\nexcept
statements (#2939)- Remove unnecessary parentheses from tuple unpacking in
\nfor
loops (#2945)- Avoid magic-trailing-comma in single-element subscripts (#2942)
\nConfiguration
\n\n
\n- Do not format
\n__pypackages__
directories by default (#2836)- Add support for specifying stable version with
\n--required-version
(#2832).- Avoid crashing when the user has no homedir (#2814)
\n- Avoid crashing when md5 is not available (#2905)
\n- Fix handling of directory junctions on Windows (#2904)
\nDocumentation
\n\n
\n- Update pylint config documentation (#2931)
\nIntegrations
\n\n
\n- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896)
\nOutput
\n\n
\n- In verbose, mode, log when Black is using user-level config (#2861)
\nPackaging
\n\n
\n- Fix Black to work with Click 8.1.0 (#2966)
\n- On Python 3.11 and newer, use the standard library's
\ntomllib
instead oftomli
\n(#2903)- \n
black-primer
, the deprecated internal devtool, has been removed and copied to a\nseparate repository (#2924)Parser
\n\n
\n- Black can now parse starred expressions in the target of
\nfor
andasync for
\nstatements, e.gfor item in *items_1, *items_2: pass
(#2879).
ae2c075
Prepare release 22.3.0 (#2968)e9681a4
Fix _unicodefun patch code for Click 8.1.0 (#2966)ac7402c
Bump sphinx from 4.4.0 to 4.5.0 in /docs (GH-2959)f239d22
Enforce no formatting changes for PRs via CI (GH-2951)bd1e980
Remove unnecessary parentheses from except
clauses (#2939)14d84ba
Resolve new flake8-bugbear errors (B020) (GH-2950)14e5ce5
Remove unnecessary parentheses from tuple unpacking in for
loops (#2945)3800ebd
Avoid magic-trailing-comma in single-element subscripts (#2942)062b549
Github now supports .git-blame-ignore-revs (GH-2948)5379d4f
stub style: remove some possible future changes (#2940)