Skip to content

Commit

Permalink
Merge pull request #724 from Yelp/lorenzodb1-maintenance-changes
Browse files Browse the repository at this point in the history
Dropped support for Python 3.7, added support for Python 3.10, upgraded dependencies and updated project info
  • Loading branch information
lorenzodb1 authored Nov 15, 2023
2 parents 950a7ca + b8e6344 commit 014770d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.7', '3.8', '3.9']
python: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.7', '3.8', '3.9']
python: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion detect_secrets/plugins/ibm_cloud_iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def verify(self, secret: str) -> VerifiedResult:


def verify_cloud_iam_api_key(apikey: Union[str, bytes]) -> requests.Response: # pragma: no cover
if type(apikey) == bytes:
if type(apikey) is bytes:
apikey = apikey.decode('UTF-8')

headers = {
Expand Down
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ certifi==2023.7.22
cfgv==3.2.0
charset-normalizer==2.0.7
coverage==4.5.4
distlib==0.3.6
filelock==3.0.12
distlib==0.3.7
filelock==3.12.2
flake8==3.5.0
gibberish-detector==0.1.1
identify==2.3.0
Expand All @@ -18,15 +18,15 @@ mypy==0.971
mypy-extensions==0.4.3
nodeenv==1.6.0
packaging==21.3
platformdirs==2.0.2
platformdirs==3.10.0
pluggy==0.13.1
pre-commit==2.17.0
py==1.11.0
pyahocorasick==1.4.4
pycodestyle==2.3.1
pyflakes==1.6.0
pyparsing==2.4.7
pytest==6.2.2
pytest==7.4.3
PyYAML==6.0
requests==2.31.0
responses==0.16.0
Expand All @@ -40,5 +40,5 @@ types-requests==2.28.9
typing-extensions==3.10.0.2
unidiff==0.7.4
urllib3==1.26.9
virtualenv==20.6.0
virtualenv==20.24.6
zipp==3.6.0
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ def get_version():
description='Tool for detecting secrets in the codebase',
long_description=long_description,
long_description_content_type='text/markdown',
license='Copyright Yelp, Inc. 2020',
author='Aaron Loo',
author_email='[email protected]',
author='Yelp, Inc.',
author_email='[email protected]',
url='https://github.com/Yelp/detect-secrets',
download_url='https://github.com/Yelp/detect-secrets/archive/{}.tar.gz'.format(VERSION),
keywords=['secret-management', 'pre-commit', 'security', 'entropy-checks'],
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[tox]
project = detect_secrets
# These should match the ci python env list
envlist = py{37,38,39},mypy
envlist = py{38,39,310},mypy
skip_missing_interpreters = true
tox_pip_extensions_ext_venv_update = true

[testenv]
passenv = SSH_AUTH_SOCK
Expand Down

0 comments on commit 014770d

Please sign in to comment.