Skip to content

version.py in version control #475

@felixhekhorn

Description

@felixhekhorn

RE the version file, I've reverted it back. imho there's no perfect solution, but what we do in NNPDF/nnpdf is to create a fake _version.py at build time, which gets ignored and imported by the real version.py https://github.com/NNPDF/nnpdf/blob/bf9a8ec9ab0cc3a4bb356732efc1c9077983b06d/pyproject.toml#L121

thinking about this perhaps it would be better if pre-commit would ensure that it gets back to 0.0.0? I wonder whether there's a ready made hook for that...

Originally posted by @scarlehoff in #470 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchmarksBenchmark (or infrastructure) relateddependenciesPull requests that update a dependency file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions