Use upstream black

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

Mantenedores costumam responder em até 7 dias

@dhruvarayasam já está trabalhando nisso.

Desde 5/1/2025.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
45/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python

Direção de pesquisa

Start in pyproject.toml, where the black configuration excludes the ropetest directory, and look for # fmt: off markers around dedent()-ed strings in the Python sources. Confirm which black version is pinned and whether the upstream fix is released before changing anything. Done when the exclusion is removed, any unneeded # fmt: off markers are gone, and black runs cleanly over the repository.

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

Descrição

cleanup good first issue
Description

Now that https://github.com/psf/black/pull/1879 is merged, once that PR is in a versioned release of black, we would be able to undo the hacks that were needed to work around black's previously broken handling of dedent()-ed strings.

  • We used to filter out ropetest from being blackened, this would no longer be needed
  • It may be possible to remove some #fmt: off markers
Linguagem predominante
Python
Estrelas
2.2k
Forks
197
Merge médio
2d 13h
PRs com merge (30d)
5

Preparar o ambiente

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 python-rope/rope

Todas as issues de python-rope/rope

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.