Skip to main content

Python package and pre-commit-hook for finding and replacing string(s) in file(s).

Project description

opencepk-lib-python-common

Common Python packages

Sample use case:


repos:

  - repo: https://github.com/opencepk/opencepk-lib-python-common
    rev: v0.0.5
    hooks:
      - id: python-pypi-version-check  # this is the id we refer to in precommit.hook
        name: Check version
        description: python-pypi-version-check
        args: ['./pyproject.toml']
        entry: python-pypi-version-check
        language: system
        pass_filenames: false  # Do not pass filenames to the hook (this is important to keep)

  - repo: https://github.com/opencepk/opencepk-lib-python-common
    rev: v0.0.5
    hooks:
    - id: find-and-replace-strings  # this is the id we refer to in precommit.hook
      name: find-and-replace-strings
      description: Find and replace strings
      entry: find-and-replace-strings
      language: python
      pass_filenames: true
      exclude_types:
        - binary
      files: '.*\.md$'
      verbose: true

      ```

Find and Replace strings

find and replace strings documentation

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

opencepk_lib_python_common-0.0.5.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file opencepk_lib_python_common-0.0.5.tar.gz.

File metadata

File hashes

Hashes for opencepk_lib_python_common-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5ba3db47c76241313c95541918968171d5ad261776f803a7ae02f02e64ab6048
MD5 94d5b40c838d48b599364ef49d87a202
BLAKE2b-256 dbb1bf14968a1c1266c664174559070a0c985809abd834c4cd116dc813e0e1e1

See more details on using hashes here.

File details

Details for the file opencepk_lib_python_common-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for opencepk_lib_python_common-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41448062c210b1a5086d16d6123d2b7376abff9d1774fce9317e31489b73f928
MD5 be4bfad0f15ae460915a3279e08b253c
BLAKE2b-256 d37233e91ec34908ff5da9310360828b1aa25d9de615ec6d179ca08159bd4f08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page