generators: fix permission check using Permission #764
Annotations
6 errors and 20 warnings
Python / Tests (3.9, postgresql14, opensearch2):
invenio_users_resources/services/generators.py#L1
Black format check
--- /home/runner/work/invenio-users-resources/invenio-users-resources/invenio_users_resources/services/generators.py 2025-02-21 13:11:32.566617+00:00
+++ /home/runner/work/invenio-users-resources/invenio-users-resources/invenio_users_resources/services/generators.py 2025-02-21 13:13:57.379681+00:00
@@ -18,11 +18,10 @@
ConditionalGenerator,
Generator,
UserNeed,
)
from invenio_search.engine import dsl
-
class IfPublic(ConditionalGenerator):
"""Generator for different permissions based on the visibility settings."""
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_users_resources/services/generators.py#L1
isort-check
UserNeed,
)
from invenio_search.engine import dsl
-
class IfPublic(ConditionalGenerator):
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_users_resources/services/generators.py#L1
Black format check
--- /home/runner/work/invenio-users-resources/invenio-users-resources/invenio_users_resources/services/generators.py 2025-02-21 13:11:31.684538+00:00
+++ /home/runner/work/invenio-users-resources/invenio-users-resources/invenio_users_resources/services/generators.py 2025-02-21 13:14:15.332367+00:00
@@ -18,11 +18,10 @@
ConditionalGenerator,
Generator,
UserNeed,
)
from invenio_search.engine import dsl
-
class IfPublic(ConditionalGenerator):
"""Generator for different permissions based on the visibility settings."""
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_users_resources/services/generators.py#L1
isort-check
UserNeed,
)
from invenio_search.engine import dsl
-
class IfPublic(ConditionalGenerator):
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/fields.py#L582
The 'default' argument to fields is deprecated. Use 'dump_default' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow/fields.py#L1218
The 'default' argument to fields is deprecated. Use 'dump_default' instead.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/fs/opener/__init__.py#L6
Deprecated call to `pkg_resources.declare_namespace('fs.opener')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pkg_resources/__init__.py#L2554
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|