Yelp / detect-secrets

An enterprise friendly way of detecting and preventing secrets in code.
Apache License 2.0
3.59k stars 449 forks source link

Problem with Python3.11 and pre-commit #788

Open puranss opened 5 months ago

puranss commented 5 months ago

Currently I have installed pre-commit with pip . If I do an audit it works fine with: Nothing to audit! I added a preconfig configuration like this

And it exits always with error code 1 (there is no secret). I tried switching different versions but nothing seems to be working

gpflaum commented 5 months ago

@puranss Do you have it working with another version of Python? The title implies the problem is new with Python 11.

puranss commented 5 months ago

Actually no, I edited the title. The problem is, it is working when I use audit but in precommit it fails with exit code 1 but no explaination of it.

puranss commented 5 months ago

I tried it with 3.9, there I have the same problem

lorenzodb1 commented 1 month ago

Hi @puranss, we just recently released support for Python 3.11. Could you please upgrade detect-secrets to v1.5 and let us know if this issue is still relevant?