gitcc


Namegitcc JSON
Version 2.0.6 PyPI version JSON
download
home_pagehttps://github.com/IceflowRE/gitcc
SummaryGIT Commit Check - check the commit for certain rules
upload_time2024-01-15 18:15:40
maintainer
docs_urlNone
authorIceflower S
requires_python>=3.9
licenseMIT
keywords git commit naming checker
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            *****
GitCC
*****
|maintained| |programming language| |license|

|github actions| |requirements|

|pypi|

----

GitCC checks commit messages for certain rules.

To use as a GitHub Actions refer to the ``commit-check-python`` section in `example <../.github/workflows/commit_check.yml>`__.

To expand gitcc to apply your own rules inherit from `gitcc.commit_validator.Validator <./gitcc/commit_validator.py>`__.
If you use the ``--validator-file`` argument the Validator class in that file must be named ``Validator``.

Shipped validators
------------------

gitcc.validation.SimpleTag
    Format: ``[<tag>] <Good Description>`` (e.g. ``[ci] Fix testing suite installation``)

----

gitcc [\-h] [\-v] [\-\-validator | \-\-validator-file] {message, git-hook, commit, history, branch}

**--validator** <Python import path>
        Python import path to Validator class.
        Example: ``--validator gitcc.validation.SimpleTag``

    ..

**--validator-file** <file path>
        Path to file with Validator..
        Example: ``--validator-file my_validator.py``

    ..

----

**message** <text>
        check the given message

    **text**
            text to check

        ..

----

*git-hook* [--force] <action> <hooks> [<hooks> ...] <repository>
        install or uninstall a git hook

    **<action>**
            Install or uninstall. [install, uninstall]

        ..

    **<hooks>**
            Choose available hooks. [message]

        ..

    **<repository>**
            path to the repository

        ..

    [options]
        **--force**
                Force install or uninstall, this might override existing files!

            ..

----

**commit** <repository>
        check current commit

    **<repository>**
            path to the repository

        ..

----

**history** [--sha <SHA>] [--verbose] <repository>
            check the current branch history

    **<repository>**
            path to the repository

        ..

    [options]
        **--sha** <SHA>
                check until this commit (exclusive)

            ..

        **--verbose**
                print correct commits too

            ..

----

**branch** [--verbose] <target> <repository>
        check the current branch with an other branch common ancestor. Is the same as gitcc history with git merge-base <source> <target>

    ..

    **<target>**
            target branch

        ..

    **<repository>**
            path to the repository

        ..

    [options]
        **--verbose**
                print correct commits too

            ..

----

**-h**, **--help**
        show this help message and exit

    ..

**-v**, **--version**
        show program's version number and exit

    ..

----

Examples
--------

.. code-block:: shell

    gitcc --validator gitcc.validation.SimpleTag message "Is this a valid message?"

Web
===

https://github.com/IceflowRE/gitcc

Credits
=======

- Developer
    - `Iceflower S <https://github.com/IceflowRE>`__
        - iceflower@gmx.de

Third Party
-----------

GitPython
    - Michael Trier and contributors
    - https://github.com/gitpython-developers/GitPython
    - `BSD-3-Clause <https://github.com/gitpython-developers/GitPython/blob/main/LICENSE>`__

License
-------

Copyright 2021-present Iceflower S (iceflower@gmx.de)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

.. Badges.

.. |maintained| image:: https://img.shields.io/badge/maintained-yes-brightgreen.svg

.. |programming language| image:: https://img.shields.io/badge/language-Python_3.10-orange.svg
   :target: https://www.python.org/

.. |license| image:: https://img.shields.io/badge/License-MIT-blue.svg
   :target: https://github.com/IceflowRE/gitcc/blob/main/LICENSE.rst

.. |github actions| image:: https://github.com/IceflowRE/gitcc/actions/workflows/build.yml/badge.svg
   :target: https://github.com/IceflowRE/gitcc/actions

.. |pypi| image:: https://img.shields.io/pypi/v/gitcc.svg
   :target: https://pypi.org/project/gitcc/

.. |requirements| image:: https://requires.io/github/IceflowRE/unidown/requirements.svg?branch=main
   :target: https://requires.io/github/IceflowRE/gitcc/requirements/?branch=main

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/IceflowRE/gitcc",
    "name": "gitcc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "git commit naming checker",
    "author": "Iceflower S",
    "author_email": "iceflower@gmx.de",
    "download_url": "",
    "platform": null,
    "description": "*****\nGitCC\n*****\n|maintained| |programming language| |license|\n\n|github actions| |requirements|\n\n|pypi|\n\n----\n\nGitCC checks commit messages for certain rules.\n\nTo use as a GitHub Actions refer to the ``commit-check-python`` section in `example <../.github/workflows/commit_check.yml>`__.\n\nTo expand gitcc to apply your own rules inherit from `gitcc.commit_validator.Validator <./gitcc/commit_validator.py>`__.\nIf you use the ``--validator-file`` argument the Validator class in that file must be named ``Validator``.\n\nShipped validators\n------------------\n\ngitcc.validation.SimpleTag\n    Format: ``[<tag>] <Good Description>`` (e.g. ``[ci] Fix testing suite installation``)\n\n----\n\ngitcc [\\-h] [\\-v] [\\-\\-validator | \\-\\-validator-file] {message, git-hook, commit, history, branch}\n\n**--validator** <Python import path>\n        Python import path to Validator class.\n        Example: ``--validator gitcc.validation.SimpleTag``\n\n    ..\n\n**--validator-file** <file path>\n        Path to file with Validator..\n        Example: ``--validator-file my_validator.py``\n\n    ..\n\n----\n\n**message** <text>\n        check the given message\n\n    **text**\n            text to check\n\n        ..\n\n----\n\n*git-hook* [--force] <action> <hooks> [<hooks> ...] <repository>\n        install or uninstall a git hook\n\n    **<action>**\n            Install or uninstall. [install, uninstall]\n\n        ..\n\n    **<hooks>**\n            Choose available hooks. [message]\n\n        ..\n\n    **<repository>**\n            path to the repository\n\n        ..\n\n    [options]\n        **--force**\n                Force install or uninstall, this might override existing files!\n\n            ..\n\n----\n\n**commit** <repository>\n        check current commit\n\n    **<repository>**\n            path to the repository\n\n        ..\n\n----\n\n**history** [--sha <SHA>] [--verbose] <repository>\n            check the current branch history\n\n    **<repository>**\n            path to the repository\n\n        ..\n\n    [options]\n        **--sha** <SHA>\n                check until this commit (exclusive)\n\n            ..\n\n        **--verbose**\n                print correct commits too\n\n            ..\n\n----\n\n**branch** [--verbose] <target> <repository>\n        check the current branch with an other branch common ancestor. Is the same as gitcc history with git merge-base <source> <target>\n\n    ..\n\n    **<target>**\n            target branch\n\n        ..\n\n    **<repository>**\n            path to the repository\n\n        ..\n\n    [options]\n        **--verbose**\n                print correct commits too\n\n            ..\n\n----\n\n**-h**, **--help**\n        show this help message and exit\n\n    ..\n\n**-v**, **--version**\n        show program's version number and exit\n\n    ..\n\n----\n\nExamples\n--------\n\n.. code-block:: shell\n\n    gitcc --validator gitcc.validation.SimpleTag message \"Is this a valid message?\"\n\nWeb\n===\n\nhttps://github.com/IceflowRE/gitcc\n\nCredits\n=======\n\n- Developer\n    - `Iceflower S <https://github.com/IceflowRE>`__\n        - iceflower@gmx.de\n\nThird Party\n-----------\n\nGitPython\n    - Michael Trier and contributors\n    - https://github.com/gitpython-developers/GitPython\n    - `BSD-3-Clause <https://github.com/gitpython-developers/GitPython/blob/main/LICENSE>`__\n\nLicense\n-------\n\nCopyright 2021-present Iceflower S (iceflower@gmx.de)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n.. Badges.\n\n.. |maintained| image:: https://img.shields.io/badge/maintained-yes-brightgreen.svg\n\n.. |programming language| image:: https://img.shields.io/badge/language-Python_3.10-orange.svg\n   :target: https://www.python.org/\n\n.. |license| image:: https://img.shields.io/badge/License-MIT-blue.svg\n   :target: https://github.com/IceflowRE/gitcc/blob/main/LICENSE.rst\n\n.. |github actions| image:: https://github.com/IceflowRE/gitcc/actions/workflows/build.yml/badge.svg\n   :target: https://github.com/IceflowRE/gitcc/actions\n\n.. |pypi| image:: https://img.shields.io/pypi/v/gitcc.svg\n   :target: https://pypi.org/project/gitcc/\n\n.. |requirements| image:: https://requires.io/github/IceflowRE/unidown/requirements.svg?branch=main\n   :target: https://requires.io/github/IceflowRE/gitcc/requirements/?branch=main\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "GIT Commit Check - check the commit for certain rules",
    "version": "2.0.6",
    "project_urls": {
        "Homepage": "https://github.com/IceflowRE/gitcc"
    },
    "split_keywords": [
        "git",
        "commit",
        "naming",
        "checker"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8682e1e9d7eef1faa9f08fb58d4484bb6ecd87ab743883269463cf5d3521659",
                "md5": "8103fe576c3c03e48444c702453bbb95",
                "sha256": "7365efad5b724a7e436330b9deac98ac54725aad0740a2a7ce1864e1cdf097e5"
            },
            "downloads": -1,
            "filename": "gitcc-2.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8103fe576c3c03e48444c702453bbb95",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9250,
            "upload_time": "2024-01-15T18:15:40",
            "upload_time_iso_8601": "2024-01-15T18:15:40.351151Z",
            "url": "https://files.pythonhosted.org/packages/f8/68/2e1e9d7eef1faa9f08fb58d4484bb6ecd87ab743883269463cf5d3521659/gitcc-2.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-15 18:15:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "IceflowRE",
    "github_project": "gitcc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gitcc"
}
        
Elapsed time: 0.23613s