[FEATURE]: Read configuration from `pyproject.toml`
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- rust
Rechercherichtung
Start by tracing where codebook searches for codebook.toml and .codebook.toml, then read the configuration parsing tests and follow the existing TOML loading path. Add pyproject.toml fallback handling for [tool.codebook], preserving the documented precedence, and verify that its settings match equivalent root configuration.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Feature Description
It would be nice if codebook could parse the configuration from a pyproject.toml in the project directory. pyproject.toml allows for arbitrary tool configuration in the [tool] table.
Use Case
Python projects tend to centralize tools configuration in pyproject.toml.
Proposed Solution
- If
codebook.tomlor.codebook.tomlare not found in the project directory, look for apyproject.toml. - If
[tool.codebook]exists, parse it for configuration. - It's expected that settings under
[tool.codebook]are the same ascodebook.tomlroot.
Alternative Solutions
No response
Examples
The README.md Configuration Options in a pyproject.toml.
[tool.codebook]
dictionaries = ["en_us", "en_gb"]
words = ["codebook", "rustc"]
flag_words = ["todo", "fixme"]
include_paths = ["src/**/*.rs", "lib/**/*.rs"]
ignore_paths = ["target/**/*", "**/*.json", ".git/**/*"]
ignore_patterns = [
'\b[ATCG]+\b',
'\d{3}-\d{2}-\d{4}',
'^[A-Z]{2,}$',
'https?://[^\s]+'
]
min_word_length = 3
use_global = true
Additional Context
Example references:
- Vorherrschende Sprache
- Rust
- Sterne
- 925
- Forks
- 59
- Ø Merge
- 53 Min.
- Gemergte PRs (30 T.)
- 10
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus blopker/codebook
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 54/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 43/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement Zed issue
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
blopker/codebook#310 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement workaround
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 49/100
blopker/codebook#297 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in blopker/codebook
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 5 Tagen
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
marketing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
5 advisory ignore entries no longer match anything in `Cargo.lock`Evtl. vergeben @zyl71 hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100