mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
build: replace black and isort with ruff
ruff format keeps black's style at the same line length, and ruff check covers import sorting plus pycodestyle and pyflakes. Three comments and a test regex are wrapped to fit 79 columns.
This commit is contained in:
8 files changed
+21
-24
No files matched your search
@@ -71,7 +71,8 @@ class DataTable(Scrollable):
|
||||
self._pad.addnstr(y, 0, row[0], min(len(row[0]), w))
|
||||
# Determine the number of characters to write
|
||||
nwrite = min(len(row[1]), w - col2_x)
|
||||
# Ensure we have enough columns, and we are writing more than zero
|
||||
# Ensure we have enough columns, and we are writing more
|
||||
# than zero
|
||||
if col2_x < w and nwrite > 0:
|
||||
self._pad.addnstr(y, col2_x, row[1], nwrite)
|
||||
if y == self._selected and has_colors():
|
||||
|
||||
Reference in new issue
Block a user