Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#451)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](astral-sh/ruff-pre-commit@v0.1.4...v0.1.5)
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](pre-commit/mirrors-mypy@v1.6.1...v1.7.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](pre-commit/mirrors-prettier@v3.0.3...v3.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 16, 2023
1 parent 0444f68 commit 42eaf0a
Show file tree
Hide file tree
Showing 26 changed files with 749 additions and 743 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.1.5
hooks:
- id: ruff
args: ['--fix', '--exit-non-zero-on-fix']
Expand Down Expand Up @@ -58,11 +58,11 @@ repos:
additional_dependencies:
- toml
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.7.0
hooks:
- id: mypy
# warn-unused-ignores is unsafe with pre-commit, see
Expand Down Expand Up @@ -102,7 +102,7 @@ repos:
additional_dependencies:
- 'bandit[toml]'
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v3.1.0
hooks:
- id: prettier
args: ['--single-quote', '--trailing-comma', 'es5']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5183,12 +5183,12 @@ Editableform based on Twitter Bootstrap 3
pos.top + pos.height + actualHeight - docScroll > parentHeight
? 'top'
: placement == 'top' && pos.top - docScroll - actualHeight < 0
? 'bottom'
: placement == 'right' && pos.right + actualWidth > parentWidth
? 'left'
: placement == 'left' && pos.left - actualWidth < parentLeft
? 'right'
: placement;
? 'bottom'
: placement == 'right' && pos.right + actualWidth > parentWidth
? 'left'
: placement == 'left' && pos.left - actualWidth < parentLeft
? 'right'
: placement;

$tip.removeClass(orgPlacement).addClass(placement);
}
Expand Down
41 changes: 21 additions & 20 deletions src/baseframe/static/js/bootstrap3/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,14 @@
pos.bottom + actualHeight > containerDim.bottom
? 'top'
: placement == 'top' && pos.top - actualHeight < containerDim.top
? 'bottom'
: placement == 'right' &&
pos.right + actualWidth > containerDim.width
? 'left'
: placement == 'left' && pos.left - actualWidth < containerDim.left
? 'right'
: placement;
? 'bottom'
: placement == 'right' &&
pos.right + actualWidth > containerDim.width
? 'left'
: placement == 'left' &&
pos.left - actualWidth < containerDim.left
? 'right'
: placement;

$tip.removeClass(orgPlacement).addClass(placement);
}
Expand Down Expand Up @@ -421,19 +422,19 @@
left: pos.left + pos.width / 2 - actualWidth / 2,
}
: placement == 'top'
? {
top: pos.top - actualHeight,
left: pos.left + pos.width / 2 - actualWidth / 2,
}
: placement == 'left'
? {
top: pos.top + pos.height / 2 - actualHeight / 2,
left: pos.left - actualWidth,
}
: /* placement == 'right' */ {
top: pos.top + pos.height / 2 - actualHeight / 2,
left: pos.left + pos.width,
};
? {
top: pos.top - actualHeight,
left: pos.left + pos.width / 2 - actualWidth / 2,
}
: placement == 'left'
? {
top: pos.top + pos.height / 2 - actualHeight / 2,
left: pos.left - actualWidth,
}
: /* placement == 'right' */ {
top: pos.top + pos.height / 2 - actualHeight / 2,
left: pos.left + pos.width,
};
};

Tooltip.prototype.getViewportAdjustedDelta = function (
Expand Down
8 changes: 4 additions & 4 deletions src/baseframe/static/js/emojionearea.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ window =
typeof global !== 'undefined'
? global
: typeof self !== 'undefined'
? self
: typeof window !== 'undefined'
? window
: {};
? self
: typeof window !== 'undefined'
? window
: {};
document = window.document || {};

(function (factory, global) {
Expand Down
4 changes: 2 additions & 2 deletions src/baseframe/static/js/footable-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@
e === a
? d.hasClass(c.sorted)
: 'toggle' === e
? !d.hasClass(c.sorted)
: e),
? !d.hasClass(c.sorted)
: e),
l.sort.ignore === !0)
)
return !0;
Expand Down
28 changes: 14 additions & 14 deletions src/baseframe/static/js/footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,20 +708,20 @@
),
!1)
: e.isFunction(i.init)
? (t.footable.options.debug === !0 &&
console.log(
'Validation succeeded for plugin "' + i.name + '".',
i
),
!0)
: (t.footable.options.debug === !0 &&
console.error(
'Validation failed, plugin "' +
i.name +
'" does not implement a function called "init".',
i
),
!1);
? (t.footable.options.debug === !0 &&
console.log(
'Validation succeeded for plugin "' + i.name + '".',
i
),
!0)
: (t.footable.options.debug === !0 &&
console.error(
'Validation failed, plugin "' +
i.name +
'" does not implement a function called "init".',
i
),
!1);
},
registered: [],
register: function (a, i) {
Expand Down
4 changes: 2 additions & 2 deletions src/baseframe/static/js/garlic.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
return localStorage.getItem(key)
? localStorage.getItem(key)
: 'undefined' !== typeof placeholder
? placeholder
: null;
? placeholder
: null;
},

has: function (key) {
Expand Down
12 changes: 6 additions & 6 deletions src/baseframe/static/js/jQRangeSlider-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,10 @@
? 'step' === b && this._checkStep(c)
? ((this.options.step = c), this.update())
: 'bounds' === b
? ((this.options.bounds = c), this.update())
: 'range' === b &&
this._checkRange(c) &&
((this.options.range = c), this.update())
? ((this.options.bounds = c), this.update())
: 'range' === b &&
this._checkRange(c) &&
((this.options.range = c), this.update())
: ((this.options.isLeft = c),
this.element
.toggleClass('ui-rangeSlider-leftHandle', this.options.isLeft)
Expand Down Expand Up @@ -1020,8 +1020,8 @@
'range' === a
? this._setRangeOption(b)
: 'wheelSpeed' === a
? this._setWheelSpeedOption(b)
: 'wheelMode' === a && this._setWheelModeOption(b);
? this._setWheelSpeedOption(b)
: 'wheelMode' === a && this._setWheelModeOption(b);
},
_setRangeOption: function (a) {
if (
Expand Down
Loading

0 comments on commit 42eaf0a

Please sign in to comment.