Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.6"
rev: "v0.9.1"
hooks:
- id: ruff
args: ["--fix"]
Expand Down
8 changes: 3 additions & 5 deletions pytest_order/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pytest_configure(config: Config) -> None:
"""

provided_by_pytest_order = (
"Provided by pytest-order. " "See also: https://pytest-order.readthedocs.io/"
"Provided by pytest-order. See also: https://pytest-order.readthedocs.io/"
)

config_line = (
Expand Down Expand Up @@ -88,17 +88,15 @@ def pytest_addoption(parser: Parser) -> None:
action="store_true",
dest="sparse_ordering",
help=(
"If there are gaps between ordinals, they are filled "
"with unordered tests."
"If there are gaps between ordinals, they are filled with unordered tests."
),
)
group.addoption(
"--order-dependencies",
action="store_true",
dest="order_dependencies",
help=(
"If set, dependencies added by pytest-dependency will be ordered "
"if needed."
"If set, dependencies added by pytest-dependency will be ordered if needed."
),
)
group.addoption(
Expand Down
8 changes: 3 additions & 5 deletions tests/test_relative_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def test_3():
assert item_names_for(test_content) == ["test_1", "test_2", "test_3"]
out, err = capsys.readouterr()
warning = (
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
)
assert warning in out

Expand Down Expand Up @@ -471,7 +471,7 @@ def test_3(self):
]
out, err = capsys.readouterr()
warning = (
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
)
assert warning in out

Expand All @@ -494,9 +494,7 @@ def test_3():
"""
assert item_names_for(test_content) == ["test_2", "test_1", "test_3"]
out, err = capsys.readouterr()
warning = (
"cannot execute test relative to others: " "test_dependency_loop.py::test_3"
)
warning = "cannot execute test relative to others: test_dependency_loop.py::test_3"
assert warning in out


Expand Down
Loading