Skip to content

Commit

Permalink
Apply ruff/flake8-pytest-style rule PT001
Browse files Browse the repository at this point in the history
PT001 Use `@pytest.fixture` over `@pytest.fixture()`
  • Loading branch information
DimitriPapadopoulos committed Aug 26, 2024
1 parent 4b30415 commit e706b44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mriqc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ def expand_namespace(doctest_namespace):
tmpdir.cleanup()


@pytest.fixture()
@pytest.fixture
def testdata_path():
return _datadir


@pytest.fixture()
@pytest.fixture
def workdir():
return None if test_workdir is None else Path(test_workdir)


@pytest.fixture()
@pytest.fixture
def outdir():
return None if test_output_dir is None else Path(test_output_dir)
2 changes: 1 addition & 1 deletion mriqc/qc/tests/test_anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_data(self, sigma, noise='normal'):
return test_data, wmdata, bgdata


@pytest.fixture()
@pytest.fixture
def gtruth():
return GroundTruth()

Expand Down

0 comments on commit e706b44

Please sign in to comment.