Skip to content

Add CI to validate URLs #201

@lfoppiano

Description

@lfoppiano

We should have a CI that validates that each URL added in this repository are parseable returning not None output.

See example http:///culture.gouv.fr was added and the resulting host None is not expected:

### 0 links from living/vame.md
http:///culture.gouv.fr <--- triple slash 

Traceback (most recent call last):
  File "/Volumes/ExtremePro/sciencialab/cc/web-languages/../web-languages-code/extract_links.py", line 116, in <module>
    links = list(map(normalize_url,
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/ExtremePro/sciencialab/cc/web-languages/../web-languages-code/extract_links.py", line 57, in normalize_url
    if not h.isascii():
           ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'isascii'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions