From 46a9e50cdab7bfcfa0dd05e07565457e29ff5fe3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:23:55 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.1 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.1...v0.12.2) - [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.20.0) - [github.com/PyCQA/isort: 5.13.2 → 6.0.1](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.16.1) - [github.com/PyCQA/flake8: 7.1.1 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.1.1...7.3.0) - [github.com/PyCQA/pylint: v3.3.3 → v3.3.7](https://github.com/PyCQA/pylint/compare/v3.3.3...v3.3.7) - [github.com/PyCQA/bandit: 1.8.2 → 1.8.6](https://github.com/PyCQA/bandit/compare/1.8.2...1.8.6) - [github.com/pycontribs/mirrors-prettier: v3.4.2 → v3.6.2](https://github.com/pycontribs/mirrors-prettier/compare/v3.4.2...v3.6.2) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec720b87..5f59d906 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,13 +8,13 @@ repos: hooks: - id: check-pre-commit-ci-config - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.1 + rev: v0.12.2 hooks: - id: ruff args: ['--fix', '--exit-non-zero-on-fix'] # Extra args, only after removing flake8 and yesqa: '--extend-select', 'RUF100' - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.20.0 hooks: - id: pyupgrade args: ['--keep-runtime-typing', '--py39-plus'] @@ -40,17 +40,17 @@ repos: - toml - tomli - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort additional_dependencies: - toml - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.14.1 + rev: v1.16.1 hooks: - id: mypy # warn-unused-ignores is unsafe with pre-commit, see @@ -66,12 +66,12 @@ repos: - types-requests - typing-extensions - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: *flake8deps - repo: https://github.com/PyCQA/pylint - rev: v3.3.3 + rev: v3.3.7 hooks: - id: pylint args: [ @@ -82,7 +82,7 @@ repos: additional_dependencies: - tomli - repo: https://github.com/PyCQA/bandit - rev: 1.8.2 + rev: 1.8.6 hooks: - id: bandit language_version: python3 @@ -90,7 +90,7 @@ repos: additional_dependencies: - 'bandit[toml]' - repo: https://github.com/pycontribs/mirrors-prettier - rev: v3.4.2 + rev: v3.6.2 hooks: - id: prettier - repo: https://github.com/ducminh-phan/reformat-gherkin From 41e51117a8c82d3837d432a0fb188de7a5131958 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:27:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/baseframe/static/css/baseframe-bs3.css | 8 +- src/baseframe/static/css/baseframe.css | 8 +- .../static/css/bootstrap3/bootstrap.css | 18 +- src/baseframe/static/css/codemirror.css | 3 +- src/baseframe/static/css/editor.css | 5 +- src/baseframe/static/css/mui.css | 5 +- src/baseframe/static/css/rrssb.css | 5 +- src/baseframe/static/js/dropzone.js | 4 +- src/baseframe/static/js/footable-filter.js | 28 +- src/baseframe/static/js/footable-paginate.js | 62 +- src/baseframe/static/js/footable-sort.js | 26 +- src/baseframe/static/js/footable.js | 98 +- src/baseframe/static/js/jQRangeSlider-min.js | 339 ++--- src/baseframe/static/js/jquery-easytabs.js | 4 +- src/baseframe/static/js/jquery-modal.js | 48 +- src/baseframe/static/js/jquery.expander.js | 4 +- src/baseframe/static/js/jquery.succinct.js | 4 +- src/baseframe/static/js/jquery.truncate8.js | 34 +- .../static/js/jquery.ui.touch-punch.js | 16 +- src/baseframe/static/js/jquery_jeditable.js | 77 +- src/baseframe/static/js/leaflet-search.js | 84 +- src/baseframe/static/js/leaflet.js | 1166 +++++++-------- src/baseframe/static/js/mui.js | 142 +- src/baseframe/static/js/pace.js | 95 +- .../static/js/ractive-transitions-fly.js | 4 +- src/baseframe/static/js/ractive.js | 1263 +++++++++-------- src/baseframe/static/js/validate.js | 8 +- .../static/less/bootstrap/mixins.less | 6 +- src/baseframe/static/sass/mui/_custom.scss | 7 +- src/baseframe/static/sass/rrssb.scss | 5 +- 30 files changed, 1837 insertions(+), 1739 deletions(-) diff --git a/src/baseframe/static/css/baseframe-bs3.css b/src/baseframe/static/css/baseframe-bs3.css index 93fecab1..5595d966 100644 --- a/src/baseframe/static/css/baseframe-bs3.css +++ b/src/baseframe/static/css/baseframe-bs3.css @@ -406,8 +406,9 @@ table.mceLayout.focus { -moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; - font-family: 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, - Arial, 'Lucida Grande', sans-serif !important; + font-family: + 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, + 'Lucida Grande', sans-serif !important; } .mce-window { @@ -517,7 +518,8 @@ input[name='title'], input[type='url'], input[name='name'] { - font-family: Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', + font-family: + Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; } diff --git a/src/baseframe/static/css/baseframe.css b/src/baseframe/static/css/baseframe.css index b6cfbf7c..2c8739f1 100644 --- a/src/baseframe/static/css/baseframe.css +++ b/src/baseframe/static/css/baseframe.css @@ -655,8 +655,9 @@ table.mceLayout.focus { -moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; - font-family: 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, - Arial, 'Lucida Grande', sans-serif !important; + font-family: + 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, + 'Lucida Grande', sans-serif !important; } .mce-window { @@ -766,7 +767,8 @@ input[name='title'], input[type='url'], input[name='name'] { - font-family: Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', + font-family: + Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; } diff --git a/src/baseframe/static/css/bootstrap3/bootstrap.css b/src/baseframe/static/css/bootstrap3/bootstrap.css index fce80631..b8e68a3c 100644 --- a/src/baseframe/static/css/bootstrap3/bootstrap.css +++ b/src/baseframe/static/css/bootstrap3/bootstrap.css @@ -269,8 +269,9 @@ html { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { - font-family: 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', - 'Bitstream Vera Sans', Arial, sans-serif; + font-family: + 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', + Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #333333; @@ -707,7 +708,8 @@ code, kbd, pre, samp { - font-family: Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', + font-family: + Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; } code { @@ -5341,8 +5343,9 @@ button.close { z-index: 1070; display: block; visibility: visible; - font-family: 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', - 'Bitstream Vera Sans', Arial, sans-serif; + font-family: + 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', + Arial, sans-serif; font-size: 14px; font-weight: normal; line-height: 1.4; @@ -5449,8 +5452,9 @@ button.close { display: none; max-width: 276px; padding: 1px; - font-family: 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', - 'Bitstream Vera Sans', Arial, sans-serif; + font-family: + 'Source Sans Pro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', + Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.5; diff --git a/src/baseframe/static/css/codemirror.css b/src/baseframe/static/css/codemirror.css index ba196c92..780f5ac0 100644 --- a/src/baseframe/static/css/codemirror.css +++ b/src/baseframe/static/css/codemirror.css @@ -2,7 +2,8 @@ .CodeMirror { height: auto; min-height: 6em; - font-family: Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', + font-family: + Consolas, Inconsolata, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; border: 1px solid #ccc; border-radius: 4px; diff --git a/src/baseframe/static/css/editor.css b/src/baseframe/static/css/editor.css index ec871d82..d2ea3807 100644 --- a/src/baseframe/static/css/editor.css +++ b/src/baseframe/static/css/editor.css @@ -1,7 +1,8 @@ @import url('//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic'); body { - font-family: 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, - Arial, 'Lucida Grande', sans-serif; + font-family: + 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, + 'Lucida Grande', sans-serif; font-size: 14px; line-height: 20px; color: #333; diff --git a/src/baseframe/static/css/mui.css b/src/baseframe/static/css/mui.css index 90749bd7..213e75ff 100644 --- a/src/baseframe/static/css/mui.css +++ b/src/baseframe/static/css/mui.css @@ -1690,8 +1690,9 @@ html { } body { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, - Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Noto Sans Math', + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, + Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Noto Sans Math', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px; font-weight: 400; diff --git a/src/baseframe/static/css/rrssb.css b/src/baseframe/static/css/rrssb.css index d4659c7a..16b1ad5c 100644 --- a/src/baseframe/static/css/rrssb.css +++ b/src/baseframe/static/css/rrssb.css @@ -1,7 +1,8 @@ .rrssb-buttons { box-sizing: border-box; - font-family: 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, - Arial, 'Lucida Grande', sans-serif; + font-family: + 'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, + 'Lucida Grande', sans-serif; height: 36px; margin: 0; margin-bottom: 12px; diff --git a/src/baseframe/static/js/dropzone.js b/src/baseframe/static/js/dropzone.js index 8a3d0430..0b7f7673 100644 --- a/src/baseframe/static/js/dropzone.js +++ b/src/baseframe/static/js/dropzone.js @@ -656,9 +656,9 @@ extend = function () { var key, object, objects, target, val, _i, _len; - (target = arguments[0]), + ((target = arguments[0]), (objects = - 2 <= arguments.length ? __slice.call(arguments, 1) : []); + 2 <= arguments.length ? __slice.call(arguments, 1) : [])); for (_i = 0, _len = objects.length; _i < _len; _i++) { object = objects[_i]; for (key in object) { diff --git a/src/baseframe/static/js/footable-filter.js b/src/baseframe/static/js/footable-filter.js index 87873b54..1b4bb8e7 100644 --- a/src/baseframe/static/js/footable-filter.js +++ b/src/baseframe/static/js/footable-filter.js @@ -15,11 +15,11 @@ !(function (t, e, i) { function a() { var e = this; - (e.name = 'Footable Filter'), + ((e.name = 'Footable Filter'), (e.init = function (i) { if (((e.footable = i), i.options.filter.enabled === !0)) { if (t(i.table).data('filter') === !1) return; - i.timers.register('filter'), + (i.timers.register('filter'), t(i.table) .unbind('.filtering') .bind({ @@ -35,26 +35,26 @@ r.data('filter-disable-enter') || i.options.filter.disableEnter, }; - l.disableEnter && + (l.disableEnter && t(l.input).keypress(function (t) { return window.event ? 13 !== window.event.keyCode : 13 !== t.which; }), r.bind('footable_clear_filter', function () { - t(l.input).val(''), e.clearFilter(); + (t(l.input).val(''), e.clearFilter()); }), r.bind('footable_filter', function (t, i) { e.filter(i.filter); }), t(l.input).keyup(function (a) { - i.timers.filter.stop(), + (i.timers.filter.stop(), 27 === a.which && t(l.input).val(''), i.timers.filter.start(function () { var i = t(l.input).val() || ''; e.filter(i); - }, l.timeout); - }); + }, l.timeout)); + })); }, 'footable_redrawn.filtering': function (a) { var r = t(i.table), @@ -62,7 +62,7 @@ l && e.filter(l); }, }) - .data('footable-filter', e); + .data('footable-filter', e)); } }), (e.filter = function (i) { @@ -77,30 +77,30 @@ var f = n.filter.split(' '); r.find('> tbody > tr').hide().addClass('footable-filtered'); var s = r.find('> tbody > tr:not(.footable-row-detail)'); - t.each(f, function (t, e) { + (t.each(f, function (t, e) { e && e.length > 0 && (r.data('current-filter', e), (s = s.filter(a.options.filter.filterFunction))); }), s.each(function () { - e.showRow(this, a), t(this).removeClass('footable-filtered'); + (e.showRow(this, a), t(this).removeClass('footable-filtered')); }), r.data('filter-string', n.filter), - a.raise('footable_filtered', { filter: n.filter, clear: !1 }); + a.raise('footable_filtered', { filter: n.filter, clear: !1 })); } }), (e.clearFilter = function () { var i = e.footable, a = t(i.table); - a + (a .find('> tbody > tr:not(.footable-row-detail)') .removeClass('footable-filtered') .each(function () { e.showRow(this, i); }), a.removeData('filter-string'), - i.raise('footable_filtered', { clear: !0 }); + i.raise('footable_filtered', { clear: !0 })); }), (e.showRow = function (e, i) { var a = t(e), @@ -111,7 +111,7 @@ r.hasClass('footable-row-detail') ? (a.add(r).show(), i.createOrUpdateDetailRow(e)) : a.show(); - }); + })); } if (e.footable === i || null === e.footable) throw new Error( diff --git a/src/baseframe/static/js/footable-paginate.js b/src/baseframe/static/js/footable-paginate.js index de0b4598..47af30c2 100644 --- a/src/baseframe/static/js/footable-paginate.js +++ b/src/baseframe/static/js/footable-paginate.js @@ -16,7 +16,7 @@ function i(e) { var t = a(e.table), i = t.data(); - (this.pageNavigation = i.pageNavigation || e.options.pageNavigation), + ((this.pageNavigation = i.pageNavigation || e.options.pageNavigation), (this.pageSize = i.pageSize || e.options.pageSize), (this.firstText = i.firstText || e.options.firstText), (this.previousText = i.previousText || e.options.previousText), @@ -32,15 +32,15 @@ (this.limit = this.limitNavigation > 0), (this.currentPage = i.currentPage || 0), (this.pages = []), - (this.control = !1); + (this.control = !1)); } function n() { var e = this; - (e.name = 'Footable Paginate'), + ((e.name = 'Footable Paginate'), (e.init = function (t) { if (t.options.paginate === !0) { if (a(t.table).data('page') === !1) return; - (e.footable = t), + ((e.footable = t), a(t.table) .unbind('.paging') .bind({ @@ -49,16 +49,16 @@ e.setupPaging(); }, }) - .data('footable-paging', e); + .data('footable-paging', e)); } }), (e.setupPaging = function () { var t = e.footable, n = a(t.table).find('> tbody'); - (t.pageInfo = new i(t)), + ((t.pageInfo = new i(t)), e.createPages(t, n), e.createNavigation(t, n), - e.fillPage(t, n, t.pageInfo.currentPage); + e.fillPage(t, n, t.pageInfo.currentPage)); }), (e.createPages = function (e, t) { var i = 1, @@ -68,11 +68,11 @@ g = []; n.pages = []; var s = t.find('> tr:not(.footable-filtered,.footable-row-detail)'); - s.each(function (a, e) { - l.push(e), + (s.each(function (a, e) { + (l.push(e), a === o - 1 ? (n.pages.push(l), i++, (o = i * n.pageSize), (l = [])) - : a >= s.length - (s.length % n.pageSize) && g.push(e); + : a >= s.length - (s.length % n.pageSize) && g.push(e)); }), g.length > 0 && n.pages.push(g), n.currentPage >= n.pages.length && @@ -80,7 +80,7 @@ n.currentPage < 0 && (n.currentPage = 0), 1 === n.pages.length ? a(e.table).addClass('no-paging') - : a(e.table).removeClass('no-paging'); + : a(e.table).removeClass('no-paging')); }), (e.createNavigation = function (t, i) { var n = a(t.table).find(t.pageInfo.pageNavigation); @@ -96,12 +96,12 @@ console.error('More than one pagination control was found!'); } if (0 !== n.length) { - n.is('ul') || + (n.is('ul') || (0 === n.find('ul:first').length && n.append('