Code Monkey home page Code Monkey logo

Comments (8)

ModischFabrications avatar ModischFabrications commented on June 1, 2024

https://pre-commit.com/ works as entry point

https://gitpython.readthedocs.io/en/stable/ is used to modify tags

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

can't tag in pre-commit, need post-commit at the earliest. Still can't really change python code from cli without risking integrity. -> python to git needed instead

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

won't work. Commit needs to exist to be tagged, pre-push is too late as it won't allow "staging" the tag as well. post-commit needed, see pre-commit/pre-commit#1411

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

Oh, btw, pycharm push won't respect pipenv shell, see pre-commit/pre-commit#1412

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

Use a common source for both versions instead?

  1. version as text file, read by app on startup
  2. fetch version file in github repo by running app to check internal version (would need requests or something similar, see #37 for some references)
  3. write script that increases version in file and tags git commit

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

Git hook reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

GitPython could push the new tag by itself, but pushing inside a push hook sounds like a really stupid idea, especially since the inner push tag refers to an outer push commit.

from cutsolver.

ModischFabrications avatar ModischFabrications commented on June 1, 2024

https://youtrack.jetbrains.com/issue/PY-12988 should make these prefixes obsolete

from cutsolver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.