-
Notifications
You must be signed in to change notification settings - Fork 256
chore(deps): update dependency mkdocstrings to v0.30.1 #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
renovate
wants to merge
2
commits into
dev
Choose a base branch
from
renovate/mkdocstrings-0.x
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
68bad15 to
7cf8559
Compare
7cf8559 to
20ea66f
Compare
20ea66f to
6ed9b6d
Compare
6ed9b6d to
6ab9ba5
Compare
6ab9ba5 to
45c186d
Compare
45c186d to
883a702
Compare
883a702 to
ce42706
Compare
ce42706 to
74c2994
Compare
74c2994 to
dd40ae3
Compare
dd40ae3 to
bed25e7
Compare
bed25e7 to
8bb419c
Compare
8bb419c to
4121a24
Compare
4121a24 to
f9bd511
Compare
f9bd511 to
28baa17
Compare
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.
This PR contains the following updates:
==0.24.0->==0.30.1Release Notes
mkdocstrings/mkdocstrings (mkdocstrings)
v0.30.1Compare Source
Compare with 0.30.0
Bug Fixes
v0.30.0Compare Source
Compare with 0.30.0
Bug Fixes
v0.29.1Compare Source
Compare with 0.29.1
Features
data-skip-inventoryboolean attribute for elements to skip registration in local inventory (f856160 by Bartosz Sławecki). Issue-671, PR-774v0.29.0Compare Source
Compare with 0.29.0
Dependencies
Bug Fixes
Code Refactoring
v0.28.3Compare Source
Compare with 0.28.3
This is the last version before v1!
Build
Features
Code Refactoring
on_env(8d1dd75 by Timothée Mazzucotelli).v0.28.2Compare Source
Compare with 0.28.2
Deprecations
All public objects must now be imported from the top-level
mkdocstringsmodule. Importing from submodules is deprecated, and will raise errors starting with v1. This should be the last deprecation before v1.Build
pythonextra depend on latest mkdocstrings-python (1.16.2) (ba9003e by Timothée Mazzucotelli).Code Refactoring
mkdocstringsmodule (e66e080 by Timothée Mazzucotelli).v0.28.1Compare Source
Compare with 0.28.1
Build
v0.28.0Compare Source
Compare with 0.28.0
Bug Fixes
relpathprocessor instead of using same instance (4ab180d by Timothée Mazzucotelli). Issue-mkdocs-3919v0.27.0Compare Source
Compare with 0.27.0
Breaking Changes
Although the following changes are "breaking" in terms of public API, we didn't find any public use of these classes and methods on GitHub.
mkdocstrings.extension.AutoDocProcessor.__init__(parser): Parameter was removedmkdocstrings.extension.AutoDocProcessor.__init__(md): Positional parameter was movedmkdocstrings.extension.AutoDocProcessor.__init__(config): Parameter was removedmkdocstrings.extension.AutoDocProcessor.__init__(handlers): Parameter kind was changed:positional or keyword->keyword-onlymkdocstrings.extension.AutoDocProcessor.__init__(autorefs): Parameter kind was changed:positional or keyword->keyword-onlymkdocstrings.extension.MkdocstringsExtension.__init__(config): Parameter was removedmkdocstrings.extension.MkdocstringsExtension.__init__(handlers): Positional parameter was movedmkdocstrings.extension.MkdocstringsExtension.__init__(autorefs): Positional parameter was movedmkdocstrings.handlers.base.Handlers.__init__(config): Parameter was removedmkdocstrings.handlers.base.Handlers.__init__(theme): Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(default): Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(inventory_project): Parameter was added as requiredmkdocstrings.handlers.base.Handlers.__init__(tool_config): Parameter was added as requiredSimilarly, the following parameters were renamed, but the methods are only called from our own code, using positional arguments.
mkdocstrings.handlers.base.BaseHandler.collect(config): Parameter was renamedoptionsmkdocstrings.handlers.base.BaseHandler.render(config): Parameter was renamedoptionsFinally, the following method was removed, but this is again taken into account in our own code:
mkdocstrings.handlers.base.BaseHandler.get_anchors: Public object was removedFor these reasons, and because we're still in v0, we do not bump to v1 yet. See following deprecations.
Deprecations
mkdocstrings 0.28 will start emitting these deprecations warnings:
Previously, the
get_handlerfunction would pass ahandler(name) argument to the handler constructor. This name must now be set on the handler's class directly.The
domainclass attribute on handlers is now mandatory and cannot be an empty string.This argument could previously be passed as a positional argument (from the
get_handlerfunction), and must now be passed as a keyword argument.Same as for
theme, but withcustom_templates.The
get_handlerfunction now receives amdxargument, which it must forward to the handler constructor and then to the base handler, either explicitly or through**kwargs:=== "Explicitly"
=== "Through
**kwargs"In the meantime we still retrieve this
mdxvalue at a different moment, by reading it from the MkDocs configuration.Same as for
mdx, but withmdx_config.Previously, mkdocstrings would pop the
importkey from a handler's configuration to download each item (URLs). Items could be strings, or dictionaries with aurlkey. Now mkdocstrings gives back control to handlers, which must store this inventory configuration within them, and expose it again through aget_inventory_urlsmethod. This method returns a list of tuples: an URL, and a dictionary of options that will be passed again to theirload_inventorymethod. Handlers have now full control over the "inventory" setting.Changing the name of the key (for example from
importtoinventories) involves a change in user configuration, and both keys will have to be supported by your handler for some time.This comes from mkdocstrings and mkdocs-autorefs, and will disappear with mkdocstrings v0.28.
Handlers must now store their own global options (in an instance attribute), and implement a
get_optionsmethod that receiveslocal_options(a dict) and returns combined options (dict or custom object). These combined options are then passed tocollectandrender, so that these methods can use them right away.Handlers can remove the
mdparameter from theirupdate_envmethod implementation, and useself.mdinstead, if they need it.Handlers don't have to call the parent
update_envmethod from their own implementation anymore, and can just drop the call.Previously, handlers would implement a
get_anchorsmethod that received a data object (typedCollectorItem) to return aliases for this object. This forced mkdocstrings to collect this object through the handler'scollectmethod, which then required some logic with "fallback config" as to prevent unwanted collection. mkdocstrings gives back control to handlers and now callsget_aliasesinstead, which accepts anidentifier(string) and lets the handler decide how to return aliases for this identifier. For example, it can replicate previous behavior by calling its owncollectmethod with its own "fallback config", or do something different (cache lookup, etc.).The
config_file_pathargument is now deprecated and only passed toget_handlerfunctions if they accept it. If you used it to compute a "base directory", you can now use thetool_configargument instead, which is the configuration of the SSG tool in use (here MkDocs):Most of these warnings will disappear with the next version of mkdocstrings-python.
Bug Fixes
Code Refactoring
config_file_pathtoget_handlerif it expects it (8c476ee by Timothée Mazzucotelli).get_anchorsmethod in favor ofget_aliasesmethod (7a668f0 by Timothée Mazzucotelli).v0.26.2Compare Source
Compare with 0.26.2
Features
Performance Improvements
Code Refactoring
v0.26.1Compare Source
Compare with 0.26.1
Build
v0.26.0Compare Source
Compare with 0.26.0
Bug Fixes
v0.25.2Compare Source
Compare with 0.25.2
Build
Dependencies
Features
v0.25.1Compare Source
Compare with 0.25.1
Code Refactoring
##) (2e5f89e by Timothée Mazzucotelli).v0.25.0Compare Source
Compare with 0.25.0
Bug Fixes
v0.24.3Compare Source
Compare with 0.24.3
Features
onceparameter in logging methods, allowing to log a message only once with a given logger (1532b59 by Timothée Mazzucotelli).::: pathand YAML options (d799d2f by Timothée Mazzucotelli). Issue-450Code Refactoring
v0.24.2Compare Source
Compare with 0.24.2
Bug Fixes
v0.24.1Compare Source
Compare with 0.24.1
Bug Fixes
Configuration
📅 Schedule: Branch creation - "before 12pm every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.