Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Jan 23, 2022
1 parent d365407 commit 8cccd08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ repos:
- --rcfile=.pylintrc
- --reports=no
- repo: git://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
rev: v1.2.3
hooks:
- id: python-safety-dependencies-check
- id: python-safety-dependencies-check
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/),
and [PEP 440](https://www.python.org/dev/peps/pep-0440/).


## [1.2.3] - 2022-01-23
### Added
- `poetry` CLI command is now looked up in `~/.local/bin`, as this is the new installation path with `install-poetry.py`

## [1.2.2] - 2021-09-17
### Fixed
- package manager detection now allows for a comment at the end of the line `[tool.poetry]` in `pyproject.toml`
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Releases details: [CHANGELOG.md](CHANGELOG.md)
## Usage
```
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
rev: v1.2.3
hooks:
- id: python-safety-dependencies-check
```
Expand All @@ -21,23 +21,23 @@ There are a few different arguements that this hook will accept.
The first is the `files` arguement. Simply put which file your dependancies are listed in.
```
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
rev: v1.2.3
hooks:
- id: python-safety-dependencies-check
files: pyproject.toml
```
The next is the `--ignore` flag. This will ignore a comma seperated list of known security issues. For example
```
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
rev: v1.2.3
hooks:
- id: python-safety-dependencies-check
args: [--ignore=39153,39652]
```
You can also select between `--full-report` and `--short-report`. By default safety will use the `--full-report` flag so you can omit it for cleaner code.
```
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.2.2
rev: v1.2.3
hooks:
- id: python-safety-dependencies-check
files: pyproject.toml
Expand Down Expand Up @@ -68,5 +68,5 @@ You'll need to `pip install safety` beforehand:

### Releasing

1. Bump version in this file, `setup.py` & `.pre-commit-config.yaml`
1. Bump version in this `README.md` file, `setup.py`, `.pre-commit-config.yaml` & `CHANGELOG.md`
2. `git commit -nam "Release $version" && git push && git tag $version && git push --tags`
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name='pre-commit-hooks-safety',
description='A pre-commit hook to check your Python dependencies against safety-db',
url='https://github.com/Lucas-C/pre-commit-hooks-safety',
version='1.2.2',
version='1.2.3',
author='Lucas Cimon',
author_email='[email protected]',
classifiers=[
Expand Down

0 comments on commit 8cccd08

Please sign in to comment.