Skip to content

Hook is nondeterministic, can we hardcode the current EOL versions instead? #8

@GideonBear

Description

@GideonBear

Hi! The hook is currently nondeterministic based on the current date. An example:

(#7 applied)

$ pre-commit run -a
Check supported Python EOL...............................................Passed

$ faketime -f "+1y" pre-commit run -a
Check supported Python EOL...............................................Failed
- hook id: check-eol
- exit code: 1

pyproject.toml: EOL Python support found: 3.10

I like the approach pyproject-fmt takes, where they bump the latest Python version manually, and release a new version, causing an autofix on an autoupdate to add the new classifier. Are you open to doing something similar here (but fully automatic)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions