Checks if GitFlow is respected in a given repository, considering provided rules
Project description
gitflow-linter
About
gitflow-linter is command line tool written in Python. It checks given repository against provided rules to ensure that Gitflow is respected.
What is Gitflow? Based on Atlassian:
The Gitflow Workflow defines a strict branching model designed around the project release.
[…]
It assigns very specific roles to different branches and defines how and when they should interact. In addition to feature branches, it uses individual branches for preparing, maintaining, and recording releases.
As they wrote: Gitflow is ideally suited for projects that have a scheduled release cycle. It means that Gitflow is not always recommended, but when it is, you’d better stick to the rules!
And this is when gitflow-linter can help ;-)
Quick Start
Installation
You can install the linter from
- pip
pip install gitflow-linter
- or the source code
git clone [https://github.com/fighterpoul/gitflow_linter.git](https://github.com/fighterpoul/gitflow_linter.git)
cd gitflow_linter
git checkout 0.1.0
python setup.py install
Usages
Usage: gitflow-linter [OPTIONS] GIT_DIRECTORY
Evaluate given repository and check if gitflow is respected
Options:
-s, --settings FILENAME
-o, --output [console|json]
-p, --fetch-prune Linter will refresh the repo before checking
-d, --allow-dirty Linter will ignore the fact that the given repo
is considered dirty
-w, --fatal-warnings Returned code will be 1 anyway, even if there
are warnings but no errors
-F, --date-from [%Y-%m-%d] Issues introduced before this date will be
ignored.
-T, --date-to [%Y-%m-%d] Issues introduced after this date will be
ignored.
--help Show this message and exit.
Standard use case looks pretty simple:
gitflow-linter /path/to/git/repository
WARNING: URL to a remote is not supported. Passing https://github.com/fighterpoul/gitflow_linter.git as the argument will fail.
HINT: Run git fetch --prune
before to make the repo clean and clear
HINT: In some cases it might be usefull to pull master and develop firstly, before running the linter: git checkout master && git checkout develop
Documentation
A bit more detailed documentation can be found here: https://fighterpoul.github.io/gitflow_linter/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gitflow_linter-0.1.0.tar.gz
.
File metadata
- Download URL: gitflow_linter-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17fe9d897f4da2e1c2fbb7deac17eafe587ec9bd88b62eafc782e019f3958048 |
|
MD5 | 289be01d51c33cd8c5c182b8d68679b0 |
|
BLAKE2b-256 | 9b383214351fb554a041681e69e462c141dbb29460c24f6187df6a98241a39d8 |
File details
Details for the file gitflow_linter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: gitflow_linter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757e101a6b921b837ff310b34dd4f49cab1f450f91148aa0303b9311ba3fd529 |
|
MD5 | fb2c5ad7232ea9b8597244dc37d3de3d |
|
BLAKE2b-256 | 39c86c4ce3fba672744bf10a3fc40b35423591a47c805dadfd945199be957172 |