Skip to content

Commit

Permalink
Add test to track formatter preview style for #8279
Browse files Browse the repository at this point in the history
Track the preview style of #8279 / psf/black#3964
  • Loading branch information
konstin committed Oct 27, 2023
1 parent cd8e1ba commit 4decd89
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
Expand Up @@ -64,3 +64,14 @@ def f():
self._cached_dependencies_by_level: dict[
int, list[DependencyCacheKey]
] = collections.defaultdict(list)


# https://github.com/astral-sh/ruff/issues/8279
# https://github.com/psf/black/pull/3964
f(
[
1,
2,
3,
]
)
Expand Up @@ -70,7 +70,17 @@ def f():
self._cached_dependencies_by_level: dict[
int, list[DependencyCacheKey]
] = collections.defaultdict(list)
```
# https://github.com/astral-sh/ruff/issues/8279
# https://github.com/psf/black/pull/3964
f(
[
1,
2,
3,
]
)```

## Outputs
### Output 1
Expand Down Expand Up @@ -149,6 +159,17 @@ def f():
self._cached_dependencies_by_level: dict[
int, list[DependencyCacheKey]
] = collections.defaultdict(list)
# https://github.com/astral-sh/ruff/issues/8279
# https://github.com/psf/black/pull/3964
f(
[
1,
2,
3,
]
)
```


Expand Down Expand Up @@ -227,6 +248,17 @@ def f():
self._cached_dependencies_by_level: dict[
int, list[DependencyCacheKey]
] = collections.defaultdict(list)
# https://github.com/astral-sh/ruff/issues/8279
# https://github.com/psf/black/pull/3964
f(
[
1,
2,
3,
]
)
```


Expand Down

0 comments on commit 4decd89

Please sign in to comment.