Feature request: Vendor `pyproject.toml` and `.pre-commit-hooks.yaml` JSON schemas
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 77/100
Piste de recherche
Examinez les hooks de schémas déjà intégrés au dépôt et la façon dont ce projet organise les fichiers de schémas. L’issue mentionne pyproject.toml et .pre-commit-hooks.yaml et contient des liens vers les deux schémas SchemaStore. Suivez le modèle des schémas similaires déjà intégrés au dépôt, puis exécutez les vérifications de validation pertinentes du projet. Le travail est terminé lorsque les deux schémas sont disponibles via le mécanisme existant du projet et valident les fichiers nommés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
[!NOTE]
Hey, thanks for maintaining this project! This has become one of my go-to set of hooks across all my projects 😎
I'm not sure how to request vendored hooks, but other folks seems to have requested them via issue, so I'm doing the same 😄
Summary
Vendor SchemaStore JSON schemas for pyproject.toml and .pre-commit-hooks.yaml:
pyproject.toml: https://www.schemastore.org/pyproject.json.pre-commit-hooks.yaml: https://www.schemastore.org/pre-commit-hooks.json
These fit nicely with this project as this project is using both pyproject.toml and .pre-commit-hooks.yaml, too!
Note: I did think about suggesting .pre-commit-config.yaml, but figured that didn't make sense since pre-commit validates its own configuration at runtime anyway.
Details
Similar issues
I couldn't find any other issues requesting these two schemas, so I think this is a new request.
Alternatives
I could find similar projects for validating the pyproject.toml file (e.g. abravalheri/validate-pyproject and henryiii/validate-pyproject-schema-store), but nothing for validating .pre-commit-hooks.yaml.
Even though I could use the alternatives for the pyproject.toml file, I'd like the convenience of using the same project for my schema validations (this project!).
Testing
I've been using the SchemaStore versions directly for a while now, and they've been working well. Here's something similar to my current pre-commit configuration for them for reference:
Expand for YAML configuration
- repo: local
hooks:
- <<: &check-jsonschema-config
entry: check-jsonschema
pass_filenames: true
language: python
additional_dependencies: ["check-jsonschema==0.38.2"]
id: check-pyproject
name: Validate pyproject.toml schema
files: pyproject.toml
args: ["--schemafile", "https://json.schemastore.org/pyproject.json"]
- <<: *check-jsonschema-config
id: check-pre-commit-hooks
name: Validate .pre-commit-hooks.yaml schema
files: .pre-commit-hooks.yaml
args: ["--schemafile", "https://json.schemastore.org/pre-commit-hooks.json"]
Contributing
I'd be happy to raise a PR for this (or two, one for each schema?) -- there are enough PRs for adding vendored schemas that I think I should be able to just follow what they do 💪
- Langage dominant
- Python
- Étoiles
- 357
- Forks
- 74
- Merge moyen
- 8 j 14 h
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de python-jsonschema/check-jsonschema
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
-
New vendored schemas: DatadogPeut-être pris @lannuttia l’a pris il y a 120 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
Feature Request: Support URL rewritePeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
-
Support ETag for cache validation when Last-Modified is unavailablePeut-être pris @sirosen l’a pris il y a 253 jours. Ouverteenhancement
python-jsonschema/check-jsonschema#668 · 9 commentaires · 1 personne assignée ·
-
Vendor multitool schemaPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Toutes les issues de python-jsonschema/check-jsonschema
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
Techiebutler/freeframe#687 ·
Les mainteneurs répondent en général sous 1 jour
-
bug verbose GC
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
IBM/javacore-analyser#677 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 2 jours
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
NousResearch/hermes-agent#163932 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's filePeut-être pris @Beehtrix l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
zilliztech/memsearch#907 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour