Hook Installation Error: ValueError: ZIP does not support timestamps before 1980
See original GitHub issueI’m not quite sure if this is the correct place to ask about this or report this but it seems like the best place to start.
When trying to do pre-commit run --all-files
I get an error when installing black (https://gist.github.com/alunduil/c10c8ea30d5e783b1f9f901edcadd184) rather than the expected successful evaluation of the defined hooks.
I’m trying to work with nix and poetry and the setup can be seen by browsing the files in https://github.com/alunduil/zfs-replicate/pull/118.
Steps that hopefully reproduce the issue:
- When working on that branch of zfs-replicate
- Ensure direnv has run:
direnv reload
(requires nix but should not require anything else) - Run
pre-commit run --all-files
Potentially related but I can’t tell. When I’m working in two different Python projects I notice that pre-commit wants to re-use the same environment even though the package sets and Python interpreters might be drastically different. Is there anyway to have pre-commit cache somewhere that’s project specific to avoid different projects causing cache collisions?
Let me know if anything is missing (I’m sure I’ve overlooked some details).
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
given this isn’t a problem with pre-commit then => closing
do you know why you have
SOURCE_DATE_EPOCH=1
? that’s what’s breaking the zip moduleunset that!