We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a18f65 commit 4a9f032Copy full SHA for 4a9f032
pytest_examples/config.py
@@ -28,6 +28,7 @@ class ExamplesConfig:
28
ruff_select: list[str] | None = None
29
ruff_ignore: list[str] | None = None
30
white_space_dot: bool = False
31
+ first_party: list[str] | None = None
32
"""If True, replace spaces with `·` in example diffs."""
33
34
def black_mode(self):
@@ -69,10 +70,11 @@ def ruff_config(self) -> tuple[str, ...]:
69
70
71
if self.upgrade:
72
select.append('UP')
- if self.isort:
73
+ if self.isort and 'I' not in select:
74
select.append('I')
75
- if self.ruff_ignore:
76
+ if self.first_party:
77
+ args.append(f'--first-party={",".join(self.first_party)}')
78
ignore.extend(self.ruff_ignore)
79
80
if select:
0 commit comments