Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Consolidate `else`/`if` conditional logic

Aperta
#49 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

@sadielbartholomew ci sta già lavorando.

Dal 10/4/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

code hygiene

There are lots of locations in the code I have noticed where the conditional if/else logic can be streamlined or improved, so it flows more intuitively and reduces the need for extra levels of indentation, etc.

This is both in the sense of direct small-scale conversions, for example, there is a whole similar block that can be reduced with elif statements here:

https://github.com/NCAS-CMS/cf-plot/blob/efe94c7551a08dac1b5af56e77d06f504c0657ea/cfplot/cfplot.py#L8967-L8990

as well as larger-scale changes to the conditional structure. All of which should not change the behaviour of the code in any way, only its implementation, to make it easier to work with and develop on top of.

Lingua principale
Python
Stelle
21
Fork
11
Merge medio
3h 36m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAS-CMS/cf-plot

Tutte le issue di NCAS-CMS/cf-plot

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.