1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

pre-commit: Fix safety invocation

For some reason this was complaining about file names being passed in by
pre-commit when `requirements-dev.txt` and `requirements.txt` were the two
changed files.

Explicitly passing them in `files:` config avoids this.
This commit is contained in:
Athanasius 2022-02-12 18:23:47 +00:00
parent 3cee7bc1b0
commit ac7aefbd3e
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -72,8 +72,9 @@ repos:
hooks:
- id: python-safety-dependencies-check
entry: safety
args: [check, --bare, -r]
args: [check, --bare, --file]
language: system
files: requirements-dev.txt, requirements.txt
# Check translation comments are up to date
- repo: local