Climate Resource pre-commit hooks
pre-commit hooks for ensuring consistency across our code base. Included are hooks which are not available elsewhere and also not super useful outside of a CR context.
Usage
To use the hooks in a project, add to your .pre-commit-config.yaml:
- repo: https://gitlab.com/climate-resource/cr-pre-commit-hooks
rev: v0.1.0
hooks:
- id: check-docstrings
For developers
For development, we rely on poetry for all our dependency management. To get started, you will need to make sure that poetry is installed (instructions here, we found that pipx and pip worked better to install on a Mac).
For all of work, we use our Makefile.
You can read the instructions out and run the commands by hand if you wish,
but we generally discourage this because it can be error prone.
In order to create your environment, run make virtual-environment.
If there are any issues, the messages from the Makefile should guide you
through. If not, please raise an issue in the issue tracker.
Metadata
Release files for cr-pre-commit-hooks 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cr_pre_commit_hooks-0.1.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cr_pre_commit_hooks-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / cr_pre_commit_hooks-0.1.1.tar.gz
| Download URL | cr_pre_commit_hooks-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bef57ed7146d7b085e6b4f2fde88eab744e143a6d048ff29067821926bf821be
|
|
BLAKE2b-256 checksum How to use checksums |
24e3f047074af300d220a16a2449b325adf32aa431a52c5a2c16e6841ea2811d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-72-generic
|
Release files / cr_pre_commit_hooks-0.1.1-py3-none-any.whl
| Download URL | cr_pre_commit_hooks-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b39434dacf0d11551ef804b8587f32b4fe3398e53a482aa498dfcd09c2ce1e3d
|
|
BLAKE2b-256 checksum How to use checksums |
8ffe9337802aa9a99fed699df97461c4263c6c1012ed05dfe64aa868fec6eb38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-72-generic
|