sbrunner-pre-commit-hooks


Namesbrunner-pre-commit-hooks JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/sbrunner/pre-commit-hooks
SummaryPre commit hook by sbrunner
upload_time2023-01-20 10:01:51
maintainer
docs_urlNone
authorStéphane Brunner
requires_python>=3.8,<4.0
license
keywords pre-commit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Pre commit hooks

[pre-commit](https://pre-commit.com/) hook used to...

Check if the copyright is up to date (using the Git history).

## Adding to your `.pre-commit-config.yaml`

```yaml
ci:
  skip:
    # Skip the copyright check on pre-commit.ci because we don't have the Git history
    - copyright
    - copyright-required
    # Poetry didn't works with Python 3.11
    - poetry-lock
    - poetry-check

repos:
  - repo: https://github.com/sbrunner/pre-commit-hooks
    rev: <version> # Use the ref you want to point at
    hooks:
      # Check that the copyright is up to date
      - id: copyright
      # Check that the copyright is present and up to date
      - id: copyright-required
      # Require a timeout in GitHub workflow files
      - id: workflows-require-timeout
      # Check Poetry config
      - id: poetry-check
        additional_dependencies:
          - poetry==<version>
      # Do Poetry lock
      - id: poetry-lock
        additional_dependencies:
          - poetry==<version>
      # Do Pipfile lock
      - id: pipenv-lock
        additional_dependencies:
          - pipenv==<version>
      # Do Helm lock (helm should be installed)
      - id: helm-lock
```

## Copyright configuration

The default values used in the `.github/copyright.yaml` file.

Default values:

```yaml
one_date_re: ' Copyright \\(c\\) (?P<year>[0-9]{4})"))'
tow_date_re: ' Copyright \\(c\\) (?P<from>[0-9]{4})-(?P<to>[0-9]{4})")'
tow_date_format: ' Copyright (c) {from}-{to}")'
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sbrunner/pre-commit-hooks",
    "name": "sbrunner-pre-commit-hooks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "pre-commit",
    "author": "St\u00e9phane Brunner",
    "author_email": "stephane.brunner@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/24/bc/4475662123377a91cc8955148682008046634273e1e82c4c73d39dd5f927/sbrunner_pre_commit_hooks-0.2.3.tar.gz",
    "platform": null,
    "description": "# Pre commit hooks\n\n[pre-commit](https://pre-commit.com/) hook used to...\n\nCheck if the copyright is up to date (using the Git history).\n\n## Adding to your `.pre-commit-config.yaml`\n\n```yaml\nci:\n  skip:\n    # Skip the copyright check on pre-commit.ci because we don't have the Git history\n    - copyright\n    - copyright-required\n    # Poetry didn't works with Python 3.11\n    - poetry-lock\n    - poetry-check\n\nrepos:\n  - repo: https://github.com/sbrunner/pre-commit-hooks\n    rev: <version> # Use the ref you want to point at\n    hooks:\n      # Check that the copyright is up to date\n      - id: copyright\n      # Check that the copyright is present and up to date\n      - id: copyright-required\n      # Require a timeout in GitHub workflow files\n      - id: workflows-require-timeout\n      # Check Poetry config\n      - id: poetry-check\n        additional_dependencies:\n          - poetry==<version>\n      # Do Poetry lock\n      - id: poetry-lock\n        additional_dependencies:\n          - poetry==<version>\n      # Do Pipfile lock\n      - id: pipenv-lock\n        additional_dependencies:\n          - pipenv==<version>\n      # Do Helm lock (helm should be installed)\n      - id: helm-lock\n```\n\n## Copyright configuration\n\nThe default values used in the `.github/copyright.yaml` file.\n\nDefault values:\n\n```yaml\none_date_re: ' Copyright \\\\(c\\\\) (?P<year>[0-9]{4})\"))'\ntow_date_re: ' Copyright \\\\(c\\\\) (?P<from>[0-9]{4})-(?P<to>[0-9]{4})\")'\ntow_date_format: ' Copyright (c) {from}-{to}\")'\n```\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Pre commit hook by sbrunner",
    "version": "0.2.3",
    "split_keywords": [
        "pre-commit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba8a0adf086e1f8e77fb12646cdf0142895b503c6a5d7e07ffb9d336b8b63ce1",
                "md5": "d1552a847a1daae71ca2a78dec067fdb",
                "sha256": "d0fbb9cb7df75196a8d2a64d471c27a080f6738d540022b7ee97458426f9fcda"
            },
            "downloads": -1,
            "filename": "sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d1552a847a1daae71ca2a78dec067fdb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 5383,
            "upload_time": "2023-01-20T10:01:50",
            "upload_time_iso_8601": "2023-01-20T10:01:50.093073Z",
            "url": "https://files.pythonhosted.org/packages/ba/8a/0adf086e1f8e77fb12646cdf0142895b503c6a5d7e07ffb9d336b8b63ce1/sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24bc4475662123377a91cc8955148682008046634273e1e82c4c73d39dd5f927",
                "md5": "10fffd92f80f7270feea170c0f337cf3",
                "sha256": "428e608b8070e2893c22cf5f811f7487281b5dfcc5f53a54c35c242f512a3287"
            },
            "downloads": -1,
            "filename": "sbrunner_pre_commit_hooks-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "10fffd92f80f7270feea170c0f337cf3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 4546,
            "upload_time": "2023-01-20T10:01:51",
            "upload_time_iso_8601": "2023-01-20T10:01:51.605628Z",
            "url": "https://files.pythonhosted.org/packages/24/bc/4475662123377a91cc8955148682008046634273e1e82c4c73d39dd5f927/sbrunner_pre_commit_hooks-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-20 10:01:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "sbrunner",
    "github_project": "pre-commit-hooks",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "sbrunner-pre-commit-hooks"
}
        
Elapsed time: 0.03022s