Skip to content

Commit fba65e8

Browse files
authored
chore: Bump ruff to 0.9.4 (#197)
* chore: Bump ruff to 0.9.4 * refactor: Apply ruff fixes
1 parent 56048f7 commit fba65e8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

conftest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
REPO_ROOT = Path(__file__).parent.resolve()
99

1010

11-
@pytest.fixture()
11+
@pytest.fixture
1212
def notebook_path(
1313
# Create and activate a new venv for each test that requests `notebook_path`
1414
venv: types.SimpleNamespace, # noqa: ARG001
@@ -18,7 +18,7 @@ def notebook_path(
1818
return notebook_path
1919

2020

21-
@pytest.fixture()
21+
@pytest.fixture
2222
def deployment_outputs() -> Dict[str, str]:
2323
"""The outputs of the deployment used to setup resources for testing samples.
2424
@@ -43,7 +43,7 @@ def deployment_outputs() -> Dict[str, str]:
4343
return {output_name: output["value"] for output_name, output in outputs.items()}
4444

4545

46-
@pytest.fixture()
46+
@pytest.fixture
4747
def azure_ai_project(deployment_outputs: Dict[str, str]) -> Dict[str, str]:
4848
"""Azure ai project dictionary."""
4949
return {
@@ -53,7 +53,7 @@ def azure_ai_project(deployment_outputs: Dict[str, str]) -> Dict[str, str]:
5353
}
5454

5555

56-
@pytest.fixture()
56+
@pytest.fixture
5757
def azure_ai_project_connection_string(deployment_outputs: Dict[str, str]) -> str:
5858
"""The connection string for the azure ai project"""
5959
return ";".join(
@@ -66,19 +66,19 @@ def azure_ai_project_connection_string(deployment_outputs: Dict[str, str]) -> st
6666
)
6767

6868

69-
@pytest.fixture()
69+
@pytest.fixture
7070
def azure_openai_endpoint(deployment_outputs: Dict[str, str]) -> str:
7171
"""The azure openai endpoint for the azure ai project."""
7272
return deployment_outputs["azure_openai_endpoint"]
7373

7474

75-
@pytest.fixture()
75+
@pytest.fixture
7676
def azure_openai_gpt4_deployment(deployment_outputs: Dict[str, str]) -> str:
7777
"""The deployment name of the gpt-4 deployment."""
7878
return deployment_outputs["azure_openai_gpt4_deployment_name"]
7979

8080

81-
@pytest.fixture()
81+
@pytest.fixture
8282
def azure_openai_gpt4_api_version(deployment_outputs: Dict[str, str]) -> str:
8383
"""The api version of the gpt-4 deployment."""
8484
return deployment_outputs["azure_openai_gpt4_api_version"]

scenarios/evaluate/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44

55

6-
@pytest.fixture()
6+
@pytest.fixture
77
def papermill_parameters(
88
azure_ai_project: Dict[str, str],
99
azure_ai_project_connection_string: str,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ commands = black {posargs}
1111

1212
[testenv:ruff]
1313
deps =
14-
ruff ~= 0.3.4
14+
ruff ~= 0.9.4
1515
commands = ruff {posargs}
1616

1717
[testenv:nb-clean]

0 commit comments

Comments
 (0)