https://github.com/aurbano/pyproject-require-pinned
pre-commit hook to require pinned dependency versions in pyproject.toml
https://github.com/aurbano/pyproject-require-pinned
Last synced: 7 days ago
JSON representation
pre-commit hook to require pinned dependency versions in pyproject.toml
- Host: GitHub
- URL: https://github.com/aurbano/pyproject-require-pinned
- Owner: aurbano
- License: mit
- Created: 2024-09-11T09:39:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T18:57:23.000Z (11 months ago)
- Last Synced: 2025-06-19T08:05:10.655Z (4 months ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Require Pinned Dependencies in `pyproject.toml`
Ensure that all your dependencies listed are pinned:
```toml
[tool.poetry.dependencies]
toml = "^0.10.2" # <- Error: Dependency version is not pinned
pre-commit = "3.6.2" # Ok
```## Usage
Add the following to your `.pre-commit-config.yaml`:
```yaml
- repo: https://github.com/aurbano/pyproject-require-pinned
rev: v1.0.0
hooks:
- id: pyproject-require-pinned
```