stylix: add editorconfig-checker pre-commit hook (#1006)

Add editorconfig-checker pre-commit hook, following commits 7fc0a8716e
("stylix: add editorconfig (#945)") and 489833b201 ("treewide: give
mustache files correct file extensions (#946)").

Link: https://github.com/danth/stylix/pull/1006

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-03-19 10:33:54 -07:00 committed by GitHub
parent 0c4ec73df6
commit 6e9927413f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2080 additions and 2083 deletions

View file

@ -132,6 +132,7 @@
git-hooks = inputs.git-hooks.lib.${system}.run {
hooks = {
deadnix.enable = true;
editorconfig-checker.enable = true;
hlint.enable = true;
nixfmt-rfc-style = {

View file

@ -1,84 +1,83 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="30"
height="30"
version="1.1"
id="svg6"
sodipodi:docname="highlight.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
viewBox="0 0 60 60"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs10">
width="30"
height="30"
version="1.1"
id="svg6"
sodipodi:docname="highlight.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
viewBox="0 0 60 60"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs10">
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect998"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1"
unit="px"
method="arc"
mode="F"
radius="15"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
effect="fillet_chamfer"
id="path-effect998"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1 @ F,0,0,1,0,15,0,1"
unit="px"
method="arc"
mode="F"
radius="15"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect996"
is_visible="true"
lpeversion="1"
nodesatellites_param="IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1"
unit="px"
method="bezier"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
effect="fillet_chamfer"
id="path-effect996"
is_visible="true"
lpeversion="1"
nodesatellites_param="IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1 @ IC,0,0,1,0,0,0,1"
unit="px"
method="bezier"
mode="F"
radius="0"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
</defs>
<sodipodi:namedview
id="namedview8"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="6.0512821"
inkscape:cx="-6.9406779"
inkscape:cy="29.663135"
inkscape:window-width="1440"
inkscape:window-height="834"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg6" />
id="namedview8"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="6.0512821"
inkscape:cx="-6.9406779"
inkscape:cy="29.663135"
inkscape:window-width="1440"
inkscape:window-height="834"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg6" />
<path
id="svg_1"
width="40"
height="40"
x="10.000001"
y="10.000001"
fill="#015ad7"
stroke="#000000"
stroke-width="0"
rx="0"
sodipodi:type="rect"
d="m 25.000001,10.000001 h 10 a 15,15 45 0 1 15,15 v 10 a 15,15 135 0 1 -15,15 h -10 a 15,15 45 0 1 -15,-15 v -10 a 15,15 135 0 1 15,-15 z"
inkscape:path-effect="#path-effect998"
style="fill:#{{base04-hex}};fill-opacity:1" />
id="svg_1"
width="40"
height="40"
x="10.000001"
y="10.000001"
fill="#015ad7"
stroke="#000000"
stroke-width="0"
rx="0"
sodipodi:type="rect"
d="m 25.000001,10.000001 h 10 a 15,15 45 0 1 15,15 v 10 a 15,15 135 0 1 -15,15 h -10 a 15,15 45 0 1 -15,-15 v -10 a 15,15 135 0 1 15,-15 z"
inkscape:path-effect="#path-effect998"
style="fill:#{{base04-hex}};fill-opacity:1" />
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before After
Before After

View file

@ -1,124 +1,121 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="30"
height="30"
version="1.1"
id="svg7"
sodipodi:docname="panel.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
viewBox="0 0 60 60"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs11">
width="30"
height="30"
version="1.1"
id="svg7"
sodipodi:docname="panel.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
viewBox="0 0 60 60"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs11">
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect1"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1"
radius="9.5"
unit="px"
method="bezier"
mode="F"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
effect="fillet_chamfer"
id="path-effect1"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1 @ F,0,0,1,0,19,0,1"
radius="9.5"
unit="px"
method="bezier"
mode="F"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<inkscape:path-effect
effect="fillet_chamfer"
id="path-effect475"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="12"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
effect="fillet_chamfer"
id="path-effect475"
is_visible="true"
lpeversion="1"
nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
unit="px"
method="auto"
mode="F"
radius="12"
chamfer_steps="1"
flexible="false"
use_knot_distance="true"
apply_no_radius="true"
apply_with_radius="true"
only_selected="false"
hide_knots="false" />
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter480"
x="-0.2"
y="-0.2"
width="1.4717949"
height="1.4717949">
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter480"
x="-0.2"
y="-0.2"
width="1.4717949"
height="1.4717949">
<feFlood
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood470" />
flood-opacity="0.498039"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood470" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite472" />
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite472" />
<feGaussianBlur
in="composite1"
stdDeviation="3"
result="blur"
id="feGaussianBlur474" />
in="composite1"
stdDeviation="3"
result="blur"
id="feGaussianBlur474" />
<feOffset
dx="2.8"
dy="2.8"
result="offset"
id="feOffset476" />
dx="2.8"
dy="2.8"
result="offset"
id="feOffset476" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite478" />
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite478" />
</filter>
</defs>
<sodipodi:namedview
id="namedview9"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="5.9"
inkscape:cx="-36.949153"
inkscape:cy="20.254237"
inkscape:window-width="1440"
inkscape:window-height="834"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g5" />
<g
id="g5">
<title
id="title2">Layer 1</title>
id="namedview9"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="5.9"
inkscape:cx="-36.949153"
inkscape:cy="20.254237"
inkscape:window-width="1440"
inkscape:window-height="834"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g5" />
<g id="g5">
<title id="title2">Layer 1</title>
<path
id="svg_1"
width="39"
height="39"
x="10.5"
y="10.5"
fill="#f0f0f0"
stroke="#adadad"
rx="0"
style="fill:#{{base00-hex}};fill-opacity:1;stroke:#{{base01-hex}};stroke-width:1.2;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter480)"
inkscape:path-effect="#path-effect1"
sodipodi:type="rect"
d="m 29.5,10.5 h 1 c 10.49341,0 19,8.50659 19,19 v 1 c 0,10.49341 -8.50659,19 -19,19 h -1 c -10.49341,0 -19,-8.50659 -19,-19 v -1 c 0,-10.49341 8.50659,-19 19,-19 z" />
id="svg_1"
width="39"
height="39"
x="10.5"
y="10.5"
fill="#f0f0f0"
stroke="#adadad"
rx="0"
style="fill:#{{base00-hex}};fill-opacity:1;stroke:#{{base01-hex}};stroke-width:1.2;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter480)"
inkscape:path-effect="#path-effect1"
sodipodi:type="rect"
d="m 29.5,10.5 h 1 c 10.49341,0 19,8.50659 19,19 v 1 c 0,10.49341 -8.50659,19 -19,19 h -1 c -10.49341,0 -19,-8.50659 -19,-19 v -1 c 0,-10.49341 8.50659,-19 19,-19 z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before After
Before After

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 155 KiB

Before After
Before After