Skip to content

Commit a2ebc9d

Browse files
committed
lint check
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
1 parent 84a9dff commit a2ebc9d

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

api/app/settings/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,8 @@
906906
"ALLOWED_CODE_CHALLENGE_METHODS": ["S256"],
907907
"SCOPES": {
908908
"mcp": "MCP access",
909-
"scim": "SCIM provisioning access",
910-
},
909+
"scim": "SCIM provisioning access",
910+
},
911911
"DEFAULT_SCOPES": ["mcp"],
912912
"ALLOWED_GRANT_TYPES": [
913913
"authorization_code",

api/projects/code_references/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class VCSProvider(TextChoices):
99
GITHUB = "github", "GitHub"
1010
GITLAB = "gitlab", "GitLab"
1111

12+
1213
class JSONCodeReference(TypedDict):
1314
feature_name: str
1415
file_path: str

api/tests/unit/features/test_unit_features_views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3664,7 +3664,6 @@ def test_list_features__with_code_references__returns_counts(
36643664
"count": 0,
36653665
"last_successful_repository_scanned_at": "2099-01-02T14:00:00+00:00",
36663666
"last_feature_found_at": "2099-01-01T13:00:00+00:00",
3667-
36683667
},
36693668
{
36703669
"repository_url": "https://gitlab.flagsmith.com/frontend/",

api/tests/unit/oauth2_metadata/test_views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ def test_metadata_endpoint__unauthenticated__returns_200_with_rfc8414_json(
3737
assert data["revocation_endpoint"] == "https://api.flagsmith.com/o/revoke_token/"
3838
assert data["introspection_endpoint"] == "https://api.flagsmith.com/o/introspect/"
3939
assert data["response_types_supported"] == ["code"]
40-
assert data["grant_types_supported"] == ["authorization_code", "refresh_token","client_credentials"]
40+
assert data["grant_types_supported"] == [
41+
"authorization_code",
42+
"refresh_token",
43+
"client_credentials",
44+
]
4145
assert data["code_challenge_methods_supported"] == ["S256"]
4246
assert "none" in data["token_endpoint_auth_methods_supported"]
4347
assert data["introspection_endpoint_auth_methods_supported"] == ["none"]

api/tests/unit/projects/code_references/test_unit_projects_code_references_services.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_get_permalink__private_github_repository__returns_valid_url(
5353
"https://github.flagsmith.com/flagsmith/backend/blob/revision-hash/path/to/file.py#L10"
5454
)
5555

56+
5657
@pytest.mark.parametrize(
5758
"repository_url",
5859
[
@@ -100,4 +101,4 @@ def test_get_permalink__private_gitlab_repository__returns_valid_url(
100101
# Then
101102
assert result == (
102103
"https://gitlab.internal.flagsmith.com/flagsmith/backend/-/blob/revision-hash/path/to/file.py#L10"
103-
)
104+
)

api/tests/unit/projects/code_references/test_unit_projects_code_references_views.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def test_get_feature_code_references__feature_not_found__returns_404(
384384
assert response.status_code == 404
385385
assert response.data["detail"] == "No Feature matches the given query."
386386

387+
387388
def test_create_code_reference__with_gitlab_provider__returns_201(
388389
admin_client_new: APIClient,
389390
project: Project,
@@ -468,11 +469,14 @@ def test_get_feature_code_references__gitlab_scan__returns_expected_permalinks(
468469

469470
# Then
470471
assert response.status_code == 200
471-
472+
472473
response_data = response.json()
473474
assert len(response_data) == 1
474475
assert response_data[0]["vcs_provider"] == "gitlab"
475-
476+
476477
# Assert the permalink uses the GitLab /-/blob/ format
477478
permalink = response_data[0]["code_references"][0]["permalink"]
478-
assert permalink == "https://gitlab.com/flagsmith/backend/-/blob/backend-1/backend/file1.py#L20"
479+
assert (
480+
permalink
481+
== "https://gitlab.com/flagsmith/backend/-/blob/backend-1/backend/file1.py#L20"
482+
)

0 commit comments

Comments
 (0)