Skip to content

Commit db0324e

Browse files
authored
Merge pull request #58 from realshouzy/pre-commit-ci-update-config
2 parents 4188d06 + 22b5112 commit db0324e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636
hooks:
3737
- id: isort
3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.5.7
39+
rev: v0.6.1
4040
hooks:
4141
- id: ruff
4242
args: [--fix, --exit-non-zero-on-fix]

tests/fixtures.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
from pathlib import Path
2626

2727

28-
@pytest.fixture()
28+
@pytest.fixture
2929
def info_caplog(caplog: pytest.LogCaptureFixture) -> pytest.LogCaptureFixture:
3030
"""Return a ``pytest.caplog`` fixture with the logging level set to ``INFO`` / 10."""
3131
caplog.set_level(logging.INFO)
3232
return caplog
3333

3434

35-
@pytest.fixture()
35+
@pytest.fixture
3636
def test_configs(
3737
tmp_path: Path,
3838
valid_json_data: dict[str, str],
@@ -45,13 +45,13 @@ def test_configs(
4545
return test_configs_file, valid_json_data
4646

4747

48-
@pytest.fixture()
48+
@pytest.fixture
4949
def test_configs_as_str(test_configs: tuple[Path, dict[str, str]]) -> str:
5050
"""Return a temporary configs ``JSON`` file as a string."""
5151
return str(test_configs[0])
5252

5353

54-
@pytest.fixture()
54+
@pytest.fixture
5555
def empty_test_configs(tmp_path: Path) -> Path:
5656
"""Return an empty temporary configs ``JSON`` file."""
5757
test_configs_file: Path = tmp_path / "test_configs.json"
@@ -61,7 +61,7 @@ def empty_test_configs(tmp_path: Path) -> Path:
6161
return test_configs_file
6262

6363

64-
@pytest.fixture()
64+
@pytest.fixture
6565
def invalid_test_configs(
6666
tmp_path: Path,
6767
invalid_json_data: str,
@@ -74,13 +74,13 @@ def invalid_test_configs(
7474
return test_configs_file, invalid_json_data
7575

7676

77-
@pytest.fixture()
77+
@pytest.fixture
7878
def test_log(tmp_path: Path) -> Path:
7979
"""Return a temporary log file."""
8080
return tmp_path / "test.log"
8181

8282

83-
@pytest.fixture()
83+
@pytest.fixture
8484
def valid_json_data() -> dict[str, str]:
8585
"""Return valid ``JSON`` data."""
8686
return {
@@ -89,13 +89,13 @@ def valid_json_data() -> dict[str, str]:
8989
}
9090

9191

92-
@pytest.fixture()
92+
@pytest.fixture
9393
def invalid_json_data() -> str:
9494
"""Return invalid ``JSON``."""
9595
return "invalid json data"
9696

9797

98-
@pytest.fixture()
98+
@pytest.fixture
9999
def extension_paths(tmp_path: Path) -> dict[str, Path]:
100100
"""Return a a ``dict`` that binds file extensions to a temporary path."""
101101
return {
@@ -104,13 +104,13 @@ def extension_paths(tmp_path: Path) -> dict[str, Path]:
104104
}
105105

106106

107-
@pytest.fixture()
107+
@pytest.fixture
108108
def path_for_undefined_extensions(tmp_path: Path) -> Path:
109109
"""Return a temporary path which will be the path for undefined extensions."""
110110
return tmp_path / "undefined"
111111

112112

113-
@pytest.fixture()
113+
@pytest.fixture
114114
def test_log_as_str(tmp_path: Path) -> str:
115115
"""Return a temporary log file as a string."""
116116
return str(tmp_path / "auto-file-sorter.log")

0 commit comments

Comments
 (0)