Comments (8)
https://pre-commit.com/ works as entry point
https://gitpython.readthedocs.io/en/stable/ is used to modify tags
from cutsolver.
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.
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.
Oh, btw, pycharm push won't respect pipenv shell, see pre-commit/pre-commit#1412
from cutsolver.
Use a common source for both versions instead?
- version as text file, read by app on startup
- fetch version file in github repo by running app to check internal version (would need requests or something similar, see #37 for some references)
- write script that increases version in file and tags git commit
from cutsolver.
Git hook reference: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
from cutsolver.
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.
https://youtrack.jetbrains.com/issue/PY-12988 should make these prefixes obsolete
from cutsolver.
Related Issues (20)
- Workers and a job queue
- Cache answers HOT 3
- offer constants readout as route?
- fix calculation HOT 3
- shrink docker image HOT 2
- reevaluate pipenv HOT 1
- improve travis tests HOT 2
- add more badges HOT 2
- add Dockerfile labels HOT 1
- evaluate size increase of wget HOT 7
- evaluate black formatting HOT 1
- Calculate code coverage HOT 3
- Fix Autobuild/Better build script HOT 5
- Describe Example deployment HOT 11
- Find permanent hosting HOT 8
- Extend CutSolver to accept multiple stock lengths/number of stock HOT 5
- Not optimized result HOT 4
- Coverage and Docker image tests
- Fix Build tagging HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cutsolver.