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
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 opencepk_lib_python_common-0.0.5.tar.gz
.
File metadata
- Download URL: opencepk_lib_python_common-0.0.5.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba3db47c76241313c95541918968171d5ad261776f803a7ae02f02e64ab6048 |
|
MD5 | 94d5b40c838d48b599364ef49d87a202 |
|
BLAKE2b-256 | dbb1bf14968a1c1266c664174559070a0c985809abd834c4cd116dc813e0e1e1 |
File details
Details for the file opencepk_lib_python_common-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: opencepk_lib_python_common-0.0.5-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41448062c210b1a5086d16d6123d2b7376abff9d1774fce9317e31489b73f928 |
|
MD5 | be4bfad0f15ae460915a3279e08b253c |
|
BLAKE2b-256 | d37233e91ec34908ff5da9310360828b1aa25d9de615ec6d179ca08159bd4f08 |