Tests fail if not 'codespell' installed
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with codespell_lib/tests/test_basic.py, especially the run_codespell and run_codespell_stdin helpers and the failing test_command and test_stdin cases. Reproduce the reported wheel-build and pytest workflow without codespell on PATH; done means those tests pass in that setup.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It looks like the project tests use codespell from $PATH rather than from the source tree.
I am following Arch linux build instructions. I build the project with python -m build --wheel --no-isolation then run tests with pytest and it fails:
$ pytest
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0
rootdir: /storage/sources/codespell
configfile: pyproject.toml
testpaths: codespell_lib/tests
plugins: dependency-0.6.0, cov-4.1.0, typeguard-4.2.1
collected 113 items
codespell_lib/tests/test_basic.py .F........................................................F [ 52%]
codespell_lib/tests/test_dictionary.py ..............................ssssssssssssssss........ [100%]
==================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________________ test_command ___________________________________________________________________________________________________
codespell_lib/tests/test_basic.py:85: in test_command
assert run_codespell(cwd=tmp_path) == 0
codespell_lib/tests/test_basic.py:72: in run_codespell
proc = subprocess.run(
/usr/lib/python3.12/subprocess.py:548: in run
with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.12/subprocess.py:1026: in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.12/subprocess.py:1955: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: 'codespell'
___________________________________________________________________________________________________ test_stdin ____________________________________________________________________________________________________
codespell_lib/tests/test_basic.py:1367: in test_stdin
assert run_codespell_stdin(
codespell_lib/tests/test_basic.py:1342: in run_codespell_stdin
proc = subprocess.run(
/usr/lib/python3.12/subprocess.py:548: in run
with Popen(*popenargs, **kwargs) as process:
/usr/lib/python3.12/subprocess.py:1026: in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.12/subprocess.py:1955: in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
E FileNotFoundError: [Errno 2] No such file or directory: 'codespell'
------------------------------------------------------------------------ generated xml file: /storage/sources/codespell/junit-results.xml -------------------------------------------------------------------------
============================================================================================= short test summary info =============================================================================================
SKIPPED [16] codespell_lib/tests/test_dictionary.py:223: requires aspell-en
==================================================================================== 2 failed, 95 passed, 16 skipped in 56.63s ====================================================================================
- Lenguaje dominante
- Python
- Estrellas
- 2.4k
- Forks
- 531
- Merge medio
- 15 h 5 min
- PR fusionados (30 d)
- 18
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
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 codespell-project/codespell
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
codespell-project/codespell#3997 ·
Los mantenedores suelen responder en 1 día
-
No error when beginning with 'Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
codespell-project/codespell#3965 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Add "marcos"Posiblemente ocupada @ekanshul la tomó hace 19 días. Abiertodictionary
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
codespell-project/codespell#3920 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
question
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
codespell-project/codespell#4005 ·
Los mantenedores suelen responder en 1 día
-
duplicate question
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
codespell-project/codespell#3998 ·
Los mantenedores suelen responder en 1 día
Todos los issues de codespell-project/codespell
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
btclib-org/btclib-node#2132 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
freelawproject/juriscraper#2367 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
infra tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
docs(k8s-api-proxy): name the service-account-token Secret path in the read-write mode commentAbiertoneeds-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
gke-labs/kube-agents#4190 ·
Los mantenedores suelen responder en 1 día