Skip to content

Commit

Permalink
[REF] requirements: Compatibility with validators 0.22
Browse files Browse the repository at this point in the history
The `public` attribute was removed.
  • Loading branch information
yajo authored and moylop260 committed Mar 13, 2024
1 parent afb73b7 commit 2427623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pylint-plugin-utils==0.7
pylint==3.0.*
validators==0.20.0
validators==0.22.*
2 changes: 1 addition & 1 deletion src/pylint_odoo/checkers/odoo_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def visit_dict(self, node):

# Check if the website is valid URI
website = manifest_dict.get("website", "")
url_is_valid = bool(validators.url(website, public=True))
url_is_valid = bool(validators.url(website))
if website and "," not in website and not url_is_valid:
self.add_message(
"website-manifest-key-not-valid-uri", node=manifest_keys_nodes.get("website") or node, args=(website)
Expand Down

0 comments on commit 2427623

Please sign in to comment.