Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove import pytest in flake8-pytest-style docs for consistency #6532

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 0 additions & 6 deletions crates/ruff/src/rules/flake8_pytest_style/rules/fail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ use super::helpers::{is_empty_or_null_string, is_pytest_fail};
///
/// ## Example
/// ```python
/// import pytest
///
///
/// def test_foo():
/// pytest.fail()
///
Expand All @@ -31,9 +28,6 @@ use super::helpers::{is_empty_or_null_string, is_pytest_fail};
///
/// Use instead:
/// ```python
/// import pytest
///
///
/// def test_foo():
/// pytest.fail("...")
///
Expand Down
6 changes: 0 additions & 6 deletions crates/ruff/src/rules/flake8_pytest_style/rules/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ impl Violation for PytestFixtureParamWithoutValue {
///
/// ## Example
/// ```python
/// import pytest
///
///
/// @pytest.yield_fixture()
/// def my_fixture():
/// obj = SomeClass()
Expand All @@ -204,9 +201,6 @@ impl Violation for PytestFixtureParamWithoutValue {
///
/// Use instead:
/// ```python
/// import pytest
///
///
/// @pytest.fixture()
/// def my_fixture():
/// obj = SomeClass()
Expand Down
6 changes: 0 additions & 6 deletions crates/ruff/src/rules/flake8_pytest_style/rules/raises.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,13 @@ impl Violation for PytestRaisesTooBroad {
///
/// ## Example
/// ```python
/// import pytest
///
///
/// def test_foo():
/// with pytest.raises():
/// do_something()
/// ```
///
/// Use instead:
/// ```python
/// import pytest
///
///
/// def test_foo():
/// with pytest.raises(SomeException):
/// do_something()
Expand Down