Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.7.4'
rev: 'v0.14.14'
hooks:
- id: ruff
args: [--fix]
2 changes: 1 addition & 1 deletion UnleashClient/connectors/polling_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
self.job = None

def _fetch_and_load(self):
(state, etag) = get_feature_toggles(
state, etag = get_feature_toggles(
url=self.url,
app_name=self.app_name,
instance_id=self.instance_id,
Expand Down
10 changes: 5 additions & 5 deletions tests/unit_tests/api/test_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_get_feature_toggle(response, status, calls, expected):
headers={"etag": ETAG_VALUE},
)

(result, etag) = get_feature_toggles(
result, etag = get_feature_toggles(
URL,
APP_NAME,
INSTANCE_ID,
Expand All @@ -73,7 +73,7 @@ def test_get_feature_toggle_project():
headers={"etag": ETAG_VALUE},
)

(result, etag) = get_feature_toggles(
result, etag = get_feature_toggles(
URL,
APP_NAME,
INSTANCE_ID,
Expand All @@ -95,7 +95,7 @@ def test_get_feature_toggle_failed_etag():
responses.GET, PROJECT_URL, json={}, status=500, headers={"etag": ETAG_VALUE}
)

(result, etag) = get_feature_toggles(
result, etag = get_feature_toggles(
URL,
APP_NAME,
INSTANCE_ID,
Expand All @@ -114,7 +114,7 @@ def test_get_feature_toggle_failed_etag():
def test_get_feature_toggle_etag_present():
responses.add(responses.GET, PROJECT_URL, status=304, headers={"etag": ETAG_VALUE})

(result, etag) = get_feature_toggles(
result, etag = get_feature_toggles(
URL,
APP_NAME,
INSTANCE_ID,
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_get_feature_toggle_retries():
headers={"etag": ETAG_VALUE},
)

(result, etag) = get_feature_toggles(
result, etag = get_feature_toggles(
URL,
APP_NAME,
INSTANCE_ID,
Expand Down
Loading