neuroinformatics-unit / python-cookiecutter

Utility to create a basic Python project structure with tests, CI etc.
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Check-manifest in pre-commit hooks includes untracked files #97

Open lauraporta opened 6 months ago

lauraporta commented 6 months ago

Describe the bug Untracked files in a repository are considered in the evaluation of check-manifest during the pre-commit hooks.

To Reproduce In a repo using the last cookie-cutter, have a tracked file staged for commit and an untracked file with an extension you are not managing in the MANIFEST file. You will see that pre-commit will fail at least at the check-manifest stage.

Expected behaviour Untracked files should be ignored, what the pre-commit hooks should check should be the staged file.