Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/asottile/add-trailing-comma.git
rev: v2.4.0
rev: v3.1.0
hooks:
- id: add-trailing-comma
args:
- --py36-plus
stages: ["manual"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: Sort import statements using isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
additional_dependencies:
Expand All @@ -27,24 +27,24 @@ repos:
- prettier-plugin-jinja-template

- repo: https://github.com/psf/black.git
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.31.0
rev: v8.15.1
hooks:
- id: cspell
name: Spell check with cspell

- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.5.1
rev: v1.5.5
hooks:
- id: remove-tabs

- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
rev: v5.0.0
hooks:
# Side-effects:
- id: trailing-whitespace
Expand All @@ -70,20 +70,20 @@ repos:
- id: check-json5

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.3.0
hooks:
- id: codespell

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
rev: v1.35.1
hooks:
- id: yamllint
args:
- --strict
types: [file, yaml]

- repo: https://github.com/PyCQA/flake8.git
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
alias: flake8
Expand All @@ -94,7 +94,7 @@ repos:
- darglint
- flake8-docstrings
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v1.3.0
rev: v1.11.2
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -104,7 +104,7 @@ repos:
- types-Flask

- repo: https://github.com/pycqa/pylint.git
rev: v3.0.0a6
rev: v3.3.1
hooks:
- id: pylint
args:
Expand Down
1 change: 1 addition & 0 deletions src/home_journal/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Form to post."""

import argparse
import logging
import pathlib
Expand Down
32 changes: 24 additions & 8 deletions src/home_journal/site/css/beer.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,9 @@ button {
background-color: var(--primary);
margin: 0 0.5rem;
border-radius: 0.5rem;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
user-select: none;
gap: 1rem;
Expand Down Expand Up @@ -1849,7 +1851,9 @@ article {
padding: 1rem;
border-radius: 0.75rem;
display: block;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
}
* + article {
Expand Down Expand Up @@ -1879,7 +1883,9 @@ article.large {
margin: 0 0.5rem;
text-transform: none;
border-radius: 0.5rem;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
user-select: none;
gap: 1rem;
Expand Down Expand Up @@ -2004,7 +2010,9 @@ nav.right:not(.s, .m, .l) ~ .responsive {
text-align: left;
border-radius: 0.25rem;
transform: scale(0.8) translateY(120%);
transition: var(--speed2) all, 0s background-color;
transition:
var(--speed2) all,
0s background-color;
}
.dropdown.no-wrap {
width: auto;
Expand Down Expand Up @@ -2356,7 +2364,9 @@ input[type="file"] {
left: 1rem;
font-size: 1rem;
transform: translateY(-50%);
transition: var(--speed2) all, 0s background-color;
transition:
var(--speed2) all,
0s background-color;
z-index: 0;
}
.field.label.textarea.small > label {
Expand Down Expand Up @@ -2969,7 +2979,9 @@ video.circle,
video.responsive {
object-fit: cover;
object-position: center;
transition: var(--speed3) transform, var(--speed3) border-radius,
transition:
var(--speed3) transform,
var(--speed3) border-radius,
var(--speed3) padding;
height: 3rem;
width: 3rem;
Expand Down Expand Up @@ -3136,7 +3148,9 @@ button > span + img.responsive {
max-height: 80%;
overflow-x: hidden;
overflow-y: auto;
transition: var(--speed3) all, 0s background-color;
transition:
var(--speed3) all,
0s background-color;
transform: translate(-50%, -4rem);
}
.modal:not(.left, .right, .top, .bottom) {
Expand Down Expand Up @@ -3504,7 +3518,9 @@ nav:not(.left, .right) > .large-space {
color: var(--on-background);
background-color: var(--overlay);
z-index: 100;
transition: var(--speed3) all, 0s background-color;
transition:
var(--speed3) all,
0s background-color;
}
nav > .overlay {
z-index: 0;
Expand Down
30 changes: 24 additions & 6 deletions src/home_journal/site/css/github-markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,14 @@
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font:
11px ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
line-height: 10px;
color: var(--color-fg-default);
vertical-align: middle;
Expand Down Expand Up @@ -436,16 +442,28 @@
.markdown-body tt,
.markdown-body code,
.markdown-body samp {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
}

.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 12px;
word-wrap: normal;
}
Expand Down
2 changes: 1 addition & 1 deletion src/home_journal/site/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
10 changes: 5 additions & 5 deletions src/home_journal/site/js/beer.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default (() => {
const t = r.currentTarget,
e = u(
"input:not([type=file]):not([type=checkbox]):not([type=radio]), select, textarea",
h(t)
h(t),
);
e && e.focus();
},
Expand Down Expand Up @@ -186,7 +186,7 @@ export default (() => {
() => {
l(t, "active");
},
e && e ? e : 6e3
e && e ? e : 6e3,
));
},
V = (r, t) => {
Expand Down Expand Up @@ -278,8 +278,8 @@ export default (() => {
p.materialDynamicColors && document.body.setAttribute("style", c[r]),
r)
: /dark/i.test(document.body.className)
? "dark"
: "light",
? "dark"
: "light",
G = () => {
k ||
((k = new MutationObserver(P)),
Expand All @@ -299,7 +299,7 @@ export default (() => {
m("[data-ui]").forEach((a) => f(a, "click", j)),
m(".field > label").forEach((a) => f(a, "click", q)),
m(
".field > input:not([type=file]):not([type=checkbox]):not([type=radio]), .field > select, .field > textarea"
".field > input:not([type=file]):not([type=checkbox]):not([type=radio]), .field > select, .field > textarea",
).forEach((a) => {
f(a, "focus", L), f(a, "blur", S), w(a);
}),
Expand Down
49 changes: 26 additions & 23 deletions src/home_journal/site/js/lightense.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"object" == typeof exports && "object" == typeof module
? (module.exports = t())
: "function" == typeof define && define.amd
? define([], t)
: "object" == typeof exports
? (exports.Lightense = t())
: (e.Lightense = t());
? define([], t)
: "object" == typeof exports
? (exports.Lightense = t())
: (e.Lightense = t());
})(this, function () {
return (
(e = {
Expand All @@ -31,14 +31,17 @@
r(e, t, i[t]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i))
: t(Object(i)).forEach(function (t) {
Object.defineProperty(
? Object.defineProperties(
e,
t,
Object.getOwnPropertyDescriptor(i, t)
);
});
Object.getOwnPropertyDescriptors(i),
)
: t(Object(i)).forEach(function (t) {
Object.defineProperty(
e,
t,
Object.getOwnPropertyDescriptor(i, t),
);
});
}
return e;
}
Expand Down Expand Up @@ -171,8 +174,8 @@
n < g && i < p
? s
: f < b
? (p / i) * s
: (g / n) * s;
? (p / i) * s
: (g / n) * s;
var h = d / 2,
m = o + l / 2,
v = c.left + a + c.width / 2,
Expand Down Expand Up @@ -201,17 +204,17 @@
var e = {
cubicBezier:
r.target.getAttribute(
"data-lightense-cubic-bezier"
"data-lightense-cubic-bezier",
) || r.cubicBezier,
background:
r.target.getAttribute(
"data-lightense-background"
"data-lightense-background",
) ||
r.target.getAttribute("data-background") ||
r.background,
zIndex:
r.target.getAttribute(
"data-lightense-z-index"
"data-lightense-z-index",
) || r.zIndex,
},
t = n(n({}, r), e);
Expand All @@ -220,17 +223,17 @@
"\n :root {\n --lightense-z-index: "
.concat(
t.zIndex - 1,
";\n --lightense-backdrop: "
";\n --lightense-backdrop: ",
)
.concat(
t.background,
";\n --lightense-duration: "
";\n --lightense-duration: ",
)
.concat(
t.time,
"ms;\n --lightense-timing-func: "
"ms;\n --lightense-timing-func: ",
)
.concat(t.cubicBezier, ";\n }")
.concat(t.cubicBezier, ";\n }"),
),
(r.container.style.visibility = "visible"),
setTimeout(function () {
Expand All @@ -244,7 +247,7 @@
(i.src = r.target.src);
})(this);
},
!1
!1,
));
}
function d(e, t) {
Expand All @@ -267,8 +270,8 @@
.concat(r.time, "ms;\n --lightense-timing-func: ")
.concat(
r.cubicBezier,
";\n}\n\n.lightense-backdrop {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n z-index: calc(var(--lightense-z-index) - 1);\n padding: 0;\n margin: 0;\n transition: opacity var(--lightense-duration) ease;\n cursor: zoom-out;\n opacity: 0;\n background-color: var(--lightense-backdrop);\n visibility: hidden;\n}\n\n@supports (-webkit-backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n -webkit-backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n@supports (backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n.lightense-wrap {\n position: relative;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n z-index: var(--lightense-z-index);\n pointer-events: none;\n}\n\n.lightense-target {\n cursor: zoom-in;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n pointer-events: auto;\n}\n\n.lightense-open {\n cursor: zoom-out;\n}\n\n.lightense-transitioning {\n pointer-events: none;\n}"
)
";\n}\n\n.lightense-backdrop {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n overflow: hidden;\n z-index: calc(var(--lightense-z-index) - 1);\n padding: 0;\n margin: 0;\n transition: opacity var(--lightense-duration) ease;\n cursor: zoom-out;\n opacity: 0;\n background-color: var(--lightense-backdrop);\n visibility: hidden;\n}\n\n@supports (-webkit-backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n -webkit-backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n@supports (backdrop-filter: blur(30px)) {\n .lightense-backdrop {\n background-color: var(--lightense-backdrop);\n backdrop-filter: var(--lightense-backdrop-filter);\n }\n}\n\n.lightense-wrap {\n position: relative;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n z-index: var(--lightense-z-index);\n pointer-events: none;\n}\n\n.lightense-target {\n cursor: zoom-in;\n transition: transform var(--lightense-duration) var(--lightense-timing-func);\n pointer-events: auto;\n}\n\n.lightense-open {\n cursor: zoom-out;\n}\n\n.lightense-transitioning {\n pointer-events: none;\n}",
),
);
}
function u() {
Expand Down
Loading