Skip to content

Commit beaf115

Browse files
committed
Disable flynt static string lint
1 parent 062cddc commit beaf115

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ extend-select = [
5959
"TCH", # TCH; flake8-type-checking: https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch
6060
# "FIX", # FIX; flake8-fixme: https://docs.astral.sh/ruff/rules/#flake8-fixme-fix
6161
# "PGH", # PGH; pygrep-hooks: https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
62-
"FLY", # FLY; flynt: https://docs.astral.sh/ruff/rules/#flynt-fly
6362
"NPY", # NPY; NumPy-specific rules: https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
6463
"RUF005", # RUF005; Ruff specific rules Consider {expression} instead of concatenation: https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
6564
"RUF100", # RUF100; Ruff specific rules Unused `noqa` directive https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf

shiny/ui/_modal.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ def modal(
131131
)
132132

133133
# jQuery plugin doesn't work in Bootstrap 5, but vanilla JS doesn't work in Bootstrap 4 :sob:
134-
js = "if (window.bootstrap && !window.bootstrap.Modal.VERSION.match(/^4\\. /)) {\n var modal=new bootstrap.Modal(document.getElementById('shiny-modal'))\n modal.show()\n} else {\n $('#shiny-modal').modal().focus()\n}"
134+
js = """\
135+
if (window.bootstrap && !window.bootstrap.Modal.VERSION.match(/^4\\. /)) {
136+
var modal=new bootstrap.Modal(document.getElementById('shiny-modal'))
137+
modal.show()
138+
} else {
139+
$('#shiny-modal').modal().focus()
140+
}"""
135141

136142
backdrop = None if easy_close else "static"
137143
keyboard = None if easy_close else "false"

0 commit comments

Comments
 (0)