Skip to content

Commit

Permalink
Updating types-pkg_resources to types-setuptools and type casting rel…
Browse files Browse the repository at this point in the history
…ative schema to str
  • Loading branch information
tanwigeetika1618 committed Aug 9, 2024
1 parent 9bbb0f0 commit fbd11f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ repos:
- subprocess-tee>=0.4.1
- "typing-extensions>=4.5.0;python_version<'3.10'"
- types-PyYAML
- types-pkg_resources
- types-setuptools
- types-jsonschema>=4.4.9
- repo: https://github.com/pycqa/pylint
rev: v3.2.4
Expand Down
4 changes: 2 additions & 2 deletions src/ansible_compat/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
role_name: my_name # if absent directory name hosting role is used instead
namespace: my_galaxy_namespace # if absent, author is used instead
Namespace: https://galaxy.ansible.com/docs/contributing/namespaces.html#galaxy-namespace-limitations
Role: https://galaxy.ansible.com/docs/contributing/creating_role.html#role-names
Namespace: https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/usage_guide/collections/#namespaces
Role: https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/dev/developer_guide/rbac/?h=creating+role#role-assignment
As an alternative, you can add 'role-name' to either skip_list or warn_list.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/ansible_compat/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def validate(
data_path=to_path(validation_error.absolute_path),
json_path=json_path(validation_error.absolute_path),
schema_path=to_path(validation_error.schema_path),
relative_schema=validation_error.schema,
expected=validation_error.validator_value,
relative_schema=str(validation_error.schema),
expected=str(validation_error.validator_value),
validator=str(validation_error.validator),
found=str(validation_error.instance),
)
Expand Down

0 comments on commit fbd11f7

Please sign in to comment.