Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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
Expand All @@ -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: [
Expand All @@ -82,15 +82,15 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/PyCQA/bandit
rev: 1.8.2
rev: 1.8.6
hooks:
- id: bandit
language_version: python3
args: ['-c', 'pyproject.toml']
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
Expand Down
8 changes: 5 additions & 3 deletions src/baseframe/static/css/baseframe-bs3.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}

Expand Down
8 changes: 5 additions & 3 deletions src/baseframe/static/css/baseframe.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}

Expand Down
18 changes: 11 additions & 7 deletions src/baseframe/static/css/bootstrap3/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/baseframe/static/css/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/baseframe/static/css/editor.css
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/baseframe/static/css/mui.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/baseframe/static/css/rrssb.css
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/baseframe/static/js/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
28 changes: 14 additions & 14 deletions src/baseframe/static/js/footable-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -35,34 +35,34 @@
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),
l = r.data('filter-string');
l && e.filter(l);
},
})
.data('footable-filter', e);
.data('footable-filter', e));
}
}),
(e.filter = function (i) {
Expand All @@ -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),
Expand All @@ -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(
Expand Down
Loading
Loading