Skip to content

Commit

Permalink
Merge pull request #60 from scop/renovate/flake8-bandit-3.x
Browse files Browse the repository at this point in the history
chore(deps): update flake8-bandit to v3
  • Loading branch information
scop committed Mar 12, 2022
2 parents c937633 + b21ee14 commit 87b3492
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/cache@v2
with:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- python-version: "3.4"
os: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: GoogleCloudPlatform/release-please-action@v3
id: release_please
with:
Expand All @@ -30,7 +30,7 @@ jobs:
needs: release_please
if: needs.release_please.outputs.release_created
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ needs.release_please.outputs.sha }}
- uses: actions/setup-python@v2
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 22.1.0
hooks:
- id: black

Expand All @@ -14,7 +14,7 @@ repos:
- #
pyflakes ==2.4.0
- #
flake8-bandit ==2.1.2
flake8-bandit ==3.0.0
- #
bandit ==1.7.4
- #
Expand Down
1 change: 1 addition & 0 deletions renovate.json
@@ -1,6 +1,7 @@
{
"extends": [
"config:base",
":prConcurrentLimit20",
":preserveSemverRanges"
],
"ignorePresets": [
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
@@ -1,11 +1,11 @@
-r requirements-test.txt

black ==21.11b1
black ==22.1.0

flake8 ==4.0.1
pycodestyle ==2.8.0
pyflakes ==2.4.0
flake8-bandit == 2.1.2
flake8-bandit ==3.0.0
bandit ==1.7.4
flake8-bugbear ==21.4.3
flake8-docstrings ==1.6.0
Expand Down
6 changes: 3 additions & 3 deletions test_hashpipe.py
Expand Up @@ -176,7 +176,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"Well, (Hi There)"),
pattern=re.compile(rb"Well, (Hi There)"),
algorithm="md5",
result=(
"Well, %s!" % _format_hash(b"9294727a3638bb1c13f48ef8158bfc9d").decode()
Expand All @@ -185,7 +185,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"(?P<name_ignored>Hi There)"),
pattern=re.compile(rb"(?P<name_ignored>Hi There)"),
algorithm="md5",
result=(
"Well, %s!" % _format_hash(b"9294727a3638bb1c13f48ef8158bfc9d").decode()
Expand All @@ -194,7 +194,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"\b(Hi There)\b"),
pattern=re.compile(rb"\b(Hi There)\b"),
algorithm="sha1",
result=(
"Well, %s!"
Expand Down

0 comments on commit 87b3492

Please sign in to comment.