Skip to content
Snippets Groups Projects
Unverified Commit 4006b23c authored by Julien Palard's avatar Julien Palard
Browse files

We have some domains containing `_`, like prod_conv.culture.gouv.fr.

Although they can't be used in URLs, they are valid domains according
to RFC 2782.

As this repo is named "noms de domaines" not "URLs", I think we should
allow them.
parent 9e7fb5ef
No related branches found
No related tags found
No related merge requests found
Pipeline #71046 passed
......@@ -31,7 +31,7 @@ def check_is_sorted(file, lines):
def check_is_valid_domain(file, lineno, line):
if not validators.domain(line):
if not validators.domain(line, rfc_2782=True):
err(f"{file}:{lineno}: {line!r} does not looks like a domain name.")
......
tqdm
aiohttp
validators
validators>=0.24.0 # where they introduced rfc_2782.
psycopg2
requests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment