Consider `import-linter` or another way to document the overall architecture

Aperta
#282 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Esamina prima la struttura del pacchetto pins e i livelli import-linter proposti. Il lavoro è completato quando viene scelto e documentato un approccio architetturale, con le relazioni di dipendenza applicate da import-linter e pre-commit oppure riportate in un diagramma o in una documentazione alternativi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

.documentation .maint

For new contributors, having some documentation of the overall pins-python package structure could be helpful.

In particular, it is helpful to get an idea of the dependency relationships between modules. import-linter allows you to declare and enforce a layered architecture; for example for pins-python, the configuration could be declared as:

[tool.importlinter]
root_packages = ["pins"]

[[tool.importlinter.contracts]]
name = "pins Modular Design"
type = "layers"
layers = [
    "constructors",
    "boards",
    "drivers",
    "meta | cache | rsconnect",
    "versions | utils",
    "config | errors | _types | data",
]
containers = "pins"
exhaustive = true

The idea is that that higher layers in the list can import from lower layers in the list, but not vice versa; and modules in the same level separated by | cannot import each other either.

Alternatively, I think having a diagram or other form of documentation would be quite helpful. However, import-linter has the advantage of enforcing the structure (potentially via pre-commit); whereas documentation can become out of date.

Lingua principale
Python
Stelle
59
Fork
11
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 rstudio/pins-python

Tutte le issue di rstudio/pins-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.