[next major] Do not shadow Python standard-library module
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Ruff / Flake8 has a new rule A005: https://docs.astral.sh/ruff/rules/stdlib-module-shadowing/
It is recommended to not shadow Python standard-library modules.
Currently, we have 5 issues:
src/zimscraperlib/html.py:1:1: A005 Module `html` shadows a Python standard-library module
src/zimscraperlib/logging.py:1:1: A005 Module `logging` shadows a Python standard-library module
src/zimscraperlib/rewriting/html.py:1:1: A005 Module `html` shadows a Python standard-library module
src/zimscraperlib/types.py:1:1: A005 Module `types` shadows a Python standard-library module
src/zimscraperlib/typing.py:1:1: A005 Module `typing` shadows a Python standard-library module
For now, I've disabled the rule A005 in https://github.com/openzim/python-scraperlib/pull/245 but we need to make a finer decision.
I think that logging module is shadowing "on-purpose" and might be allowed. Others could be considered for renaming. But I don't have very good suggestions of names, so I'm not 100% convinced, if we end-up with bad names, I'm not sure it really ease maintenance at all.
- Lenguaje dominante
- Python
- Estrellas
- 33
- Forks
- 36
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 19
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de openzim/python-scraperlib
-
handle_user_provided_file leaves an empty temp filePosiblemente ocupada @kevincommits la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
openzim/python-scraperlib#414 ·
Los mantenedores suelen responder en 1 día
-
HtmlRewriter: title is cut at the first `&` (entity or bare ampersand)Posiblemente ocupada @rajanpanth la tomó hace 23 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
openzim/python-scraperlib#401 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[next major] Remove deprecated 'convert' parameter for optimize_image function inside optimization.pyPosiblemente ocupada @Sriram-Nambiar la tomó hace 51 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
openzim/python-scraperlib#292 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Deduplicator: xxh32 digest can collide on large ZIMsPosiblemente ocupada @i-varunsharma la tomó hace 1 día. Abierto
openzim/python-scraperlib#426 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Metadata accepts empty BytesIO/file values although empty is not allowedPosiblemente ocupada @playlikeboy la tomó hace 1 día. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 25/100
openzim/python-scraperlib#422 ·
Los mantenedores suelen responder en 1 día
Todos los issues de openzim/python-scraperlib
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día