Skip to content

Commit 0177b03

Browse files
duc-mtdarrenburns
andauthored
Black formatting (#3035)
* fix: minor black formatting * style: update CONTRIBUTORS.md * fix: more black formatting Default black with no arguments provided --------- Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
1 parent 7a168a2 commit 0177b03

31 files changed

+4
-39
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The following people have contributed to the development of Rich:
3131
- [Andrew Kettmann](https://github.com/akettmann)
3232
- [Martin Larralde](https://github.com/althonos)
3333
- [Hedy Li](https://github.com/hedythedev)
34+
- [Henry Mai](https://github.com/tanducmai)
3435
- [Luka Mamukashvili](https://github.com/UltraStudioLTD)
3536
- [Alexander Mancevice](https://github.com/amancevice)
3637
- [Will McGugan](https://github.com/willmcgugan)

examples/dynamic_progress.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def run_steps(name, step_times, app_steps_task_id):
8989
# which allows for running multiple different progress bars in parallel,
9090
# and dynamically showing/hiding them
9191
with Live(progress_group):
92-
9392
for idx, (name, step_times) in enumerate(apps):
9493
# update message on overall progress bar
9594
top_descr = "[bold #AAAAAA](%d out of %d apps installed)" % (idx, len(apps))

examples/top_lite_simulator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def generate_process(pid: int) -> Process:
5353

5454

5555
def create_process_table(height: int) -> Table:
56-
5756
processes = sorted(
5857
[generate_process(pid) for pid in range(height)],
5958
key=lambda p: p.cpu_percent,

rich/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
207207

208208

209209
if __name__ == "__main__": # pragma: no cover
210-
211210
console = Console(
212211
file=io.StringIO(),
213212
force_terminal=True,

rich/_ratio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def ratio_distribute(
151151

152152
@dataclass
153153
class E:
154-
155154
size: Optional[int] = None
156155
ratio: int = 1
157156
minimum_size: int = 1

rich/_windows.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class WindowsConsoleFeatures:
3030
)
3131

3232
except (AttributeError, ImportError, ValueError):
33-
3433
# Fallback if we can't load the Windows DLL
3534
def get_windows_console_features() -> WindowsConsoleFeatures:
3635
features = WindowsConsoleFeatures()

rich/bar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def __repr__(self) -> str:
4848
def __rich_console__(
4949
self, console: Console, options: ConsoleOptions
5050
) -> RenderResult:
51-
5251
width = min(
5352
self.width if self.width is not None else options.max_width,
5453
options.max_width,

rich/box.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ def get_bottom(self, widths: Iterable[int]) -> str:
464464

465465

466466
if __name__ == "__main__": # pragma: no cover
467-
468467
from rich.columns import Columns
469468
from rich.panel import Panel
470469

rich/cells.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def chop_cells(text: str, max_size: int, position: int = 0) -> List[str]:
145145

146146

147147
if __name__ == "__main__": # pragma: no cover
148-
149148
print(get_character_cell_size("😽"))
150149
for line in chop_cells("""这是对亚洲语言支持的测试。面对模棱两可的想法,拒绝猜测的诱惑。""", 8):
151150
print(line)

rich/color.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,6 @@ def blend_rgb(
592592

593593

594594
if __name__ == "__main__": # pragma: no cover
595-
596595
from .console import Console
597596
from .table import Table
598597
from .text import Text

0 commit comments

Comments
 (0)