pre-commit / pre-commit/pre-commit-hooks
Proposal: new hook to detect LFS attribute inconsistencies
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 6.7k
- Forks
- 800
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
There are two common errors when working with LFS:
- Keeping files as general objects after setting LFS attributes (LFS produces a warnings like "Encountered 1 file(s) that should have been pointers, but weren't")
- Keeping LFS pointers after removing the attributes.
Proposed implementation of a check-lfs-attributes hook: https://github.com/klimkin/pre-commit-hooks/tree/feature/check-lfs-attributes
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
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.
Piste de recherche
Start by reviewing the proposed check-lfs-attributes implementation at the linked branch, then compare it with the repository's existing hook patterns. Verify both reported cases: tracked files that should be LFS pointers and LFS pointers whose attributes were removed; done means the hook detects each inconsistency reliably.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, python
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100