Skip to content

Commit

Permalink
fix ruff warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bretello committed Apr 29, 2024
1 parent e6688e2 commit e3efc61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyrepl/readline.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _make_stub(_name, _ret):
def stub(*args, **kwds):
import warnings

warnings.warn("readline.%s() not implemented" % _name, stacklevel=2)
warnings.warn(f"readline.{_name}() not implemented", stacklevel=2)

stub.__name__ = _name
globals()[_name] = stub
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest


@pytest.fixture(scope="session", autouse=True)
def isolate(tmp_path_factory):
""" avoids writing history files and/or using user-specific settings """
Expand Down

0 comments on commit e3efc61

Please sign in to comment.