ruff
710c60f7 - [`flake8-pytest-style`] Make example error out-of-the-box (`PT023`) (#19104)

Commit
164 days ago
[`flake8-pytest-style`] Make example error out-of-the-box (`PT023`) (#19104) <!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Part of #18972 This PR makes [pytest-incorrect-mark-parentheses-style (PT023)](https://docs.astral.sh/ruff/rules/pytest-incorrect-mark-parentheses-style/#pytest-incorrect-mark-parentheses-style-pt023)'s example error out-of-the-box [Old example](https://play.ruff.rs/48989153-6d4a-493a-a287-07f330f270bc) ```py import pytest @pytest.mark.foo def test_something(): ... ``` [New example](https://play.ruff.rs/741f4d19-4607-4777-a77e-4ea6c62845e1) ```py import pytest @pytest.mark.foo() def test_something(): ... ``` This just swaps the parenthesis in the "Example" and "Use instead" sections since the default configuration is no parenthesis ## Test Plan <!-- How was it tested? --> N/A, no functionality/tests affected
Author
Parents
Loading