fix(deps): update dependency griffe to v1 #152
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.45.2
->==1.5.5
Release Notes
mkdocstrings/griffe (griffe)
v1.5.5
Compare Source
Compare with 1.5.4
Bug Fixes
v1.5.4
Compare Source
Compare with 1.5.3
Bug Fixes
Performance Improvements
v1.5.3
Compare Source
Compare with 1.5.2
Code Refactoring
v1.5.2
Compare Source
Compare with 1.5.1
Bug Fixes
v1.5.1
Compare Source
Compare with 1.5.0
Bug Fixes
creatordate
field, which works with both lightweight and annotated tags (3bfa401 by Timothée Mazzucotelli). Issue-327v1.5.0
Compare Source
Compare with 1.4.1
Features
v1.4.1
Compare Source
Compare with 1.4.0
Code Refactoring
v1.4.0
Compare Source
Compare with 1.3.2
Features
griffe check
command (806805c by Timothée Mazzucotelli).v1.3.2
Compare Source
Compare with 1.3.1
Bug Fixes
v1.3.1
Compare Source
Compare with 1.3.0
Bug Fixes
v1.3.0
Compare Source
Compare with 1.2.0
Features
Bug Fixes
Code Refactoring
resolve
method, add tests for it (aa6c7e4 by Timothée Mazzucotelli).v1.2.0
Compare Source
Compare with 1.1.1
Features
__all__
values (ad99794 by Timothée Mazzucotelli). Issue-316v1.1.1
Compare Source
Compare with 1.1.0
Bug Fixes
__all__
values and wildcard imports before firing theon_package_loaded
event (21b3780 by Timothée Mazzucotelli).v1.1.0
Compare Source
Compare with 1.0.0
Features
on_wildcard_expansion
event (c6bc6fa by Timothée Mazzucotelli). Issue-282on_alias
event (a760a8c by Timothée Mazzucotelli). Issue-282loader
toon_package_loaded
hooks (7f82dc3 by Timothée Mazzucotelli).v1.0.0
Compare Source
Compare with 0.49.0
V1! 🚀 🔥 🌈
Breaking changes
Highlights:
Extension
, (VisitorExtension
andInspectorExtension
are removed)as_dict
/JSON) as a dictionary instead of a listgriffe
module, nowhere elseRemoved objects:
griffe
packagegriffe.DocstringWarningCallable
classgriffe.When
classgriffe.ExtensionType
typegriffe.InspectorExtension
classgriffe.VisitorExtension
classgriffe.HybridExtension
extensiongriffe.patch_logger
functiongriffe.JSONEncoder.docstring_parser
attributegriffe.JSONEncoder.docstring_options
attributegriffe.Extensions.attach_visitor
methodgriffe.Extensions.attach_inspector
methodgriffe.Extensions.before_visit
methodgriffe.Extensions.before_children_visit
methodgriffe.Extensions.after_children_visit
methodgriffe.Extensions.after_visit
methodgriffe.Extensions.before_inspection
methodgriffe.Extensions.before_children_inspection
methodgriffe.Extensions.after_children_inspection
methodgriffe.Extensions.after_inspection
methodgriffe.GriffeLoader.load_module
methodhas_special_name
andhas_private_name
properties on objectsis_explicitely_exported
andis_implicitely_exported
properties on objectsmember_is_exported
method on objectsRenamed/moved objects:
griffe.Function.setter
->griffe.Attribute.setter
griffe.Function.deleter
->griffe.Attribute.deleter
Signatures:
griffe.docstring_warning(name)
parameter was removedgriffe.GriffeLoader.load(module)
parameter was removedgriffe.load(module)
parameter was removedgriffe.load_git(module)
parameter was removedgriffe.find_breaking_changes(ignore_private)
parameter was removedCode Refactoring
v0.49.0
Compare Source
Compare with 0.48.0
WARNING: ⚡ Imminent v1! ⚡🚀 See v0.46.
Deprecations
get_logger
andpatch_loggers
(and deprecatepatch_logger
instead). Extensions need loggers too, distinct ones, and they were forgotten... Sorry for the back and forth 🙇setter
anddeleter
onFunction
are deprecated. They were moved into theAttribute
class since properties are instantiated as attributes, not functions.**kwargs
in their signature, to allow forward-compatibility. Accepting**kwargs
also makes it possible to remove unused arguments from the signature.lineno
,endlineno
). Version 0.49 is able to load both lists and dictionaries from JSON dumps, and version 1 will maintain this ability. However external tools loading JSON dumps will need to be updated.Features
temporary_inspected_package
helper (3c4ba16 by Timothée Mazzucotelli).temporary_visited_package
(7d5408a by Timothée Mazzucotelli).inits
parameter intemporary_visited_package
(a4859b7 by Timothée Mazzucotelli).__all__
) (f82317a by Timothée Mazzucotelli). Issue-249, Related-to-PR-251source
property to docstrings, which return the docstring lines as written in the source (3f6a71a by Timothée Mazzucotelli). Issue-90Bug Fixes
setter
anddeleter
toAttribute
class instead ofFunction
, since that's how properties are instantiated (309c6e3 by Timothée Mazzucotelli). Issue-311has_docstrings
, unless they're public (9296ca7 by Timothée Mazzucotelli). Issue-302Code Refactoring
**kwargs
in extension hooks to allow forward-compatibility (2621d52 by Timothée Mazzucotelli). Issue-312patch_loggers
in favor ofpatch_logger
(a20796a by Timothée Mazzucotelli).load_pypi
in non-Insiders version (a69cffd by Timothée Mazzucotelli).str, Enum
instead ofStrEnum
which needs a backport (77f1544 by Timothée Mazzucotelli). Issue-307v0.48.0
Compare Source
Compare with 0.47.0
WARNING: ⚡ Imminent v1! ⚡🚀 See v0.46.
Deprecations
griffe
module."griffe"
in v1. In v1 our single"griffe"
logger will provide a method to temporarily disable logging, [logger.disable()
][griffe.Logger.disable], since that's the most common third-party use.get_logger
function is deprecated. Instead, we'll use a globallogger
internally, and users are welcome to use it too.patch_loggers
function is renamedpatch_logger
.docstring_warning
][griffe.docstring_warning] function can now directly log a warning message instead of returning a callable that does. Passing it a logger name (to get a callable) is deprecated in favor of passing it a docstring, message and offset directly.Features
FORCE_COLOR
environment variable (e1b7bd9 by Timothée Mazzucotelli).Bug Fixes
__all__
convention when checking if a module is public (5abf4e3 by Timothée Mazzucotelli).Code Refactoring
is_public
property (c2bbc10 by Timothée Mazzucotelli).dataclasses
internal modules tomodels
(5555de6 by Timothée Mazzucotelli)._griffe
internal package (cbce6a5 by Timothée Mazzucotelli).v0.47.0
Compare Source
Compare with 0.46.1
WARNING: ⚡ Imminent v1! ⚡🚀 See v0.46.
Deprecations
has_private_name
andhas_special_name
properties on objects and aliases have been renamedis_private
andis_special
. Theis_private
property now only returns true if the name is not special.Features
deprecated
attribute andis_deprecated
property to objects/aliases (2a75d84 by Timothée Mazzucotelli).is_imported
property to objects/aliases (de926cc by Timothée Mazzucotelli).is_class_private
property to objects/aliases (491b6c4 by Timothée Mazzucotelli).Code Refactoring
has_private_name
andhas_special_name
tois_private
andis_special
(ae7c7e7 by Timothée Mazzucotelli).v0.46.1
Compare Source
Compare with 0.46.0
WARNING: ⚡ Imminent v1! ⚡🚀 See v0.46.
Bug Fixes
v0.46.0
Compare Source
Compare with 0.45.3
WARNING: ⚡ Imminent v1! ⚡🚀
We are working on v1, and it will come soon, so we recommend that you consider adding an upper bound on Griffe. Version 1 will remove all legacy code! There will be a couple more v0 before so that you get all the deprecation warnings needed to upgrade your code using Griffe before upgrading to v1. See breaking changes and deprecations for v0.46 below.
Breaking Changes
We are still in v0, so no major bump yet.
has_labels()
][griffe.Object.has_labels] method with alabels
keyword argument is not supported anymore. The parameter became a variadic positional parameter, so it cannot be used as a keyword argument anymore. Passing a sequence instead of multiple positional arguments still works but will emit a deprecation warning.load_extensions()
][griffe.load_extensions] function with anexts
keyword argument is not supported anymore. The parameter became a variadic positional parameter, so it cannot be used as a keyword argument anymore. Passing a sequence instead of multiple positional arguments still works but will emit a deprecation warning.Deprecations
Object.has_labels()
][griffe.Object.has_labels] and [load_extensions()
][griffe.load_extensions] both became variadic positional parameters. Passing a sequence as single argument is deprecated in favor of passing multiple arguments. This is an ergonomic change: I myself often forgot to wrap extensions in a list. Passing sequences of labels (lists, sets, tuples) is also difficult from Jinja templates.member_is_exported()
,is_explicitely_exported
,is_implicitely_exported
. Use the [is_exported
][griffe.ObjectAliasMixin.is_exported] property instead. See issue 281.is_exported()
][griffe.ObjectAliasMixin.is_exported] and [is_public()
][griffe.ObjectAliasMixin.is_public] methods became properties. They can still be called like methods, but will emit deprecation warnings when doing so. See issue 281.ignore_private
parameter of the [find_breaking_changes()
][griffe.find_breaking_changes] function is now deprecated and unused. With the reworked "exported" and "public" API, this parameter became useless. See issue 281.stats()
instead of [Stats
][griffe.Stats] will now emit a deprecation warning.Features
docstring
attribute to parameters (e21eabe by Hassan Kibirige). Issue-286, Related-to-mkdocstrings/griffe#252, PR-288, Co-authored-by: Timothée Mazzucotelli [email protected]Bug Fixes
Code Refactoring
stats
instead ofStats
(e5572d2 by Timothée Mazzucotelli).load_extensions
instead of a sequence (fadb72b by Timothée Mazzucotelli). Issue-268Object.has_labels
instead of set (c4e3bf2 by Timothée Mazzucotelli). Issue-267v0.45.3
Compare Source
Compare with 0.45.2
Bug Fixes
on_package_loaded
hook on a package, and not any other object (40db38d by Timothée Mazzucotelli). Issue-283Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.