Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

skip .rtf files or skip all markup in them?

Abierto
#2,864 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

Start by reading the file-filtering and markup-handling code and its tests; the issue gives installer/windows/license.rtf as a concrete example where codespell changed markup. Clarify whether RTF files should be skipped entirely or only their markup excluded, then add coverage for the chosen behavior. Done means codespell no longer changes markup such as \pard to part.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

duplicate

happened to me in https://github.com/PintaProject/Pinta/pull/258#issuecomment-1571047402 that codespell "fixed" an .rtf file

❯ file installer/windows/license.rtf
installer/windows/license.rtf: Rich Text Format data, version 1, ANSI, code page 1252, default language ID 3082
❯ file --mime-type installer/windows/license.rtf
installer/windows/license.rtf: text/rtf

with the diff

❯ git diff --color -a 0cfd0e32^..0cfd0e32 -- installer/windows/license.rtf
diff --git a/installer/windows/license.rtf b/installer/windows/license.rtf
index c7a61208..ea9a67d5 100644
--- a/installer/windows/license.rtf
+++ b/installer/windows/license.rtf
@@ -1,5 +1,5 @@
 {\rtf1\ansi\ansicpg1252\deff0\deflang3082\deflangfe3082{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
-{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs20 The MIT License\par
+{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\part\sa200\sl276\slmult1\lang9\f0\fs20 The MIT License\par
 Copyright (c) 2010 Jonathan Pobst <[email protected]>\par
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par

where \pard was replaced with part. within the markup

Lenguaje dominante
Python
Estrellas
2.4k
Forks
531
Merge medio
15 h 5 min
PR fusionados (30 d)
18

Preparar el entorno

Abrir en Codespaces

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codespell-project/codespell

Todos los issues de codespell-project/codespell

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.