Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#79)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.3.2 → v0.8.0](astral-sh/ruff-pre-commit@v0.3.2...v0.8.0)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 26, 2024
1 parent e8f69e4 commit a8c7fa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
minimum_pre_commit_version: "3.0.4"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
rev: v0.8.0
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
rev: "v5.0.0"
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand Down
10 changes: 6 additions & 4 deletions tests/test_botaffiumeiro.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,9 @@ def test_select_user1(self) -> None:
"user2": {"amazon_affiliate_id": "user2-affiliate-id"},
}

with patch("secrets.SystemRandom.uniform", return_value=50), patch(
"botaffiumeiro.config_manager", mock_config_manager
with (
patch("secrets.SystemRandom.uniform", return_value=50),
patch("botaffiumeiro.config_manager", mock_config_manager),
):
selected_user = select_user_for_domain("amazon")

Expand All @@ -743,8 +744,9 @@ def test_select_user2(self) -> None:
"user2": {"amazon_affiliate_id": "user2-affiliate-id"},
}

with patch("secrets.SystemRandom.uniform", return_value=80), patch(
"botaffiumeiro.config_manager", mock_config_manager
with (
patch("secrets.SystemRandom.uniform", return_value=80),
patch("botaffiumeiro.config_manager", mock_config_manager),
):
selected_user = select_user_for_domain("amazon")

Expand Down

0 comments on commit a8c7fa6

Please sign in to comment.