Skip to content

Feat/tabler+editable cols#2910

Draft
ElLorans wants to merge 27 commits into
masterfrom
feat/tabler+editable_cols
Draft

Feat/tabler+editable cols#2910
ElLorans wants to merge 27 commits into
masterfrom
feat/tabler+editable_cols

Conversation

@ElLorans

Copy link
Copy Markdown
Contributor

This is a drat attempting to combine #2847 and #2892

mariofix and others added 27 commits May 23, 2026 13:56
Merged from mariofix/flask-admin-tablerui
Tabler version 1.4.0
…rts --disable-error-code name-defined --no-warn-unused-ignores --allow-subclassing-any examples

examples/tabler/main.py:73: error: Missing type parameters for generic type "dict"  [type-arg]
        meta_data: Mapped[dict] = mapped_column(JSON, default=dict, server_default=text("'{}'"))
                          ^
Found 1 error in 1 file (checked 55 source files)
typing: exit 1 (23.45 seconds) /home/umpirsky/Projects/flask-admin> mypy --python-version 3.14 --ignore-missing-imports --disable-error-code name-defined --no-warn-unused-ignores --allow-subclassing-any examples pid=4036247
  typing: FAIL code 1 (72.73=setup[2.26]+cmd[23.15,23.88,23.45] seconds)
  evaluation failed :( (72.82 seconds)
style: venv> .venv/bin/uv venv -p /home/umpirsky/Projects/flask-admin/.venv/bin/python --allow-existing --python-preference system /home/umpirsky/Projects/flask-admin/.tox/style
style: uv-sync> uv sync --locked --python-preference system --extra all --no-default-groups --no-editable --reinstall-package Flask-Admin --group pre-commit -p /home/umpirsky/Projects/flask-admin/.venv/bin/python
style: commands[0]> pre-commit run --all-files
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Installing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Using pre-commit with uv 0.11.6 via pre-commit-uv 4.2.0
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Using pre-commit with uv 0.11.6 via pre-commit-uv 4.2.0
ruff.....................................................................Failed
- hook id: ruff
- exit code: 1
- files were modified by this hook

examples/tabler/main.py:69:89: E501 Line too long (102 > 88)
   |
67 |     title: Mapped[str] = mapped_column(String(64))
68 |     content: Mapped[Text] = mapped_column(Text)
69 |     meta_data: Mapped[dict[str, Any]] = mapped_column(JSON, default=dict, server_default=text("'{}'"))
   |                                                                                         ^^^^^^^^^^^^^^ E501
70 |
71 |     def __repr__(self):
   |

examples/tabler/main.py:178:89: E501 Line too long (89 > 88)
    |
176 |     # admin.add_menu_item(MenuDivider(), target_category="Links")
177 |     # admin.add_link(
178 |     #     MenuLink(name="External link", url="http://www.example.com/", category="Links")
    |                                                                                         ^ E501
179 |     # )
    |

flask_admin/tests/tabler/test_renders.py:64:89: E501 Line too long (92 > 88)
   |
62 |             ],
63 |         ),
64 |         ("condensed", ["data-tabler-layout=\"condensed\"", "tabler-admin-navbar-collapse"]),
   |                                                                                         ^^^^ E501
65 |     ],
66 | )
   |

Fixed 7 errors:
- examples/tabler/main.py:
    5 × F401 (unused-import)
    1 × I001 (unsorted-imports)
- flask_admin/tests/tabler/test_renders.py:
    1 × I001 (unsorted-imports)

Found 10 errors (7 fixed, 3 remaining).

ruff-format..............................................................Failed
- hook id: ruff-format
- files were modified by this hook

4 files reformatted, 167 files left unchanged

check for merge conflicts................................................Passed
debug statements (python)................................................Passed
fix utf-8 byte order marker..............................................Passed
trim trailing whitespace.................................................Passed
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing flask_admin/tests/tabler/__init__.py

style: exit 1 (10.35 seconds) /home/umpirsky/Projects/flask-admin> pre-commit run --all-files pid=4052435
  style: FAIL code 1 (12.66=setup[2.31]+cmd[10.35] seconds)
  evaluation failed :( (12.72 seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants