Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #18972

This PR makes pytest-incorrect-mark-parentheses-style (PT023)'s example error out-of-the-box

Old example

import pytest


@pytest.mark.foo
def test_something(): ...

New example

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

N/A, no functionality/tests affected

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre added the documentation Improvements or additions to documentation label Jul 3, 2025
@ntBre ntBre merged commit 710c60f into astral-sh:main Jul 3, 2025
36 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-3 branch July 3, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants