My own useful pre-commit hooks
Project description
mondeja's pre-commit hooks
Example configuration
- repo: https://github.com/mondeja/pre-commit-hooks
rev: v1.1.0
hooks:
- id: dev-extras-required
Hooks
wavelint
Check if your WAVE files have the correct number of channels, frame rate, durations...
Parameters
-nchannels=N(int): Number of channels that your sounds must have.-sample-width=N(int): Number of bytes that your sounds must have.-frame-rate=N(int): Sampling frequency that your sounds must have.-nframes=N(int): Exact number of frames that your sounds must have.-comptype=TYPE(str): Compression type that your sounds must have.-compname=NAME(int): Compression that your sounds must have.-min-duration=TIME(float): Minimum duration in seconds that your sounds must have.-max-duration=TIME(float): Maximum duration in seconds that your sounds must have.
dev-extras-required
- Doesn't support
setup.pyfiles. Please, migrate your setup configuration tosetup.cfgformat.- Support for
pyproject.tomlfiles is limited to printing errors, automatic file rewriting is not performed.
Check if your development dependencies contains all other extras requirements. If an extra requirement is defined in other extra group than your development one, it will be added to your development extra dependencies group. If your development group is not defined, it will be created.
This is useful if you want to execute python -m pip install -e .[dev] to
install all the optional requirements of the package, so if you add a new
requirement to another groups, it will be added to development requirements.
Parameters
-extra=NAME(str): Name for your development requirements extra group (as defaultdev).-setup-cfg=PATH(str): Path to yoursetup.cfgfile, mandatory if the extras requirements are defined in asetup.cfgfile and this is located in another directory than the current one.-pyproject-toml=PATH(str): Path to yourpyproject.tomlfile, mandatory if the extras requirements are defined in apyproject.tomlfile and this is located in another directory than the current one.
add-pre-commit-hook
Add a pre-commit hook to your configuration file if is not already defined.
Parameters
-repo=URL(str) Repository of the new hook.-rev=VERSION(str) Version of the new hook.-hook=ID(str) Identifier of the new hook.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mondeja_pre_commit_hooks-1.1.0.tar.gz.
File metadata
- Download URL: mondeja_pre_commit_hooks-1.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.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 |
1ea2d990f712cc8c6fab8a18c61601e81e65b2eba8cd758aea394988a31bfba6
|
|
| MD5 |
7f3e695b2132167e49d752ffa7462c53
|
|
| BLAKE2b-256 |
dbdcfe843bcd6530df2d8e8eaaf975796eb79be669a2d0e9c0e316f2bc54d94a
|
File details
Details for the file mondeja_pre_commit_hooks-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: mondeja_pre_commit_hooks-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.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 |
e59bee3bb4000523dfa632f86ba92bd87fa6b741c9e28e793a2f3508d85b0164
|
|
| MD5 |
64eb69aecea2d38163a43a37021f8a47
|
|
| BLAKE2b-256 |
90b784b5402c3502f4438b134b8c54c600a4f06d2b8ec869b99c0288ab4f754b
|