Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

skip .rtf files or skip all markup in them?

Aberta
#2,864 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
2.4k
Forks
531
Merge médio
15h 54min
PRs com merge (30d)
17

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Sem modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de codespell-project/codespell

Todas as issues de codespell-project/codespell

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.