Skip to content

Commit

Permalink
bump ruff and pytest-ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-mixas committed Sep 1, 2024
1 parent e124789 commit 4575ed0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ lint = [
test = [
'pytest',
'pytest-cov',
'pytest-ruff',
'ruff==0.4.10',
'pytest-ruff==0.4.0',
'ruff==0.6.3',
]

[project.scripts]
Expand Down
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
pytest.register_assert_rewrite('tests.common')


@pytest.fixture()
@pytest.fixture
def content():
def _reader(filename):
with open(filename) as f:
Expand All @@ -16,7 +16,7 @@ def _reader(filename):
return _reader


@pytest.fixture()
@pytest.fixture
def expected(request):
filename = os.path.splitext(request.module.__file__)[0]
filename += f'.{request.function.__name__}.exp'
Expand All @@ -25,7 +25,7 @@ def expected(request):
return f.read()


@pytest.fixture()
@pytest.fixture
def rpath(request):
def _path_resolver(filename):
path = os.path.join(
Expand All @@ -41,7 +41,7 @@ def _path_resolver(filename):
return _path_resolver


@pytest.fixture()
@pytest.fixture
def stringio():
return StringIO()

Expand All @@ -51,6 +51,6 @@ def isatty(self):
return True


@pytest.fixture()
@pytest.fixture
def stringio_tty():
return _StringIOTTY()

0 comments on commit 4575ed0

Please sign in to comment.