Skip to content

Commit 5e356e0

Browse files
[pre-commit.ci] pre-commit autoupdate (#656)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/rbubley/mirrors-prettier: 1463d990e0801964764a375260dca598513f3be5 → bc7af46104f0f5368b95878decf720f9f00c2559](rbubley/mirrors-prettier@1463d99...bc7af46) - [github.com/astral-sh/ruff-pre-commit: 75b98813cfb7e663870a28c74366a1e99d7bfe79 → 89c421dff2e1026ba12cdb9ebd731f4a83aa8021](astral-sh/ruff-pre-commit@75b9881...89c421d) * '[pre-commit.ci 🤖] Apply code format tools to PR' --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e4604fc commit 5e356e0

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/rbubley/mirrors-prettier
22-
rev: 1463d990e0801964764a375260dca598513f3be5 # frozen: v3.3.3
22+
rev: bc7af46104f0f5368b95878decf720f9f00c2559 # frozen: v3.4.2
2323
hooks:
2424
- id: prettier
2525
types_or: [yaml, toml, markdown, css, scss, javascript, json]
2626
args: [--prose-wrap=preserve]
2727

2828
- repo: https://github.com/astral-sh/ruff-pre-commit
29-
rev: 75b98813cfb7e663870a28c74366a1e99d7bfe79 # frozen: v0.6.9
29+
rev: 89c421dff2e1026ba12cdb9ebd731f4a83aa8021 # frozen: v0.8.6
3030
hooks:
3131
- id: ruff
3232
args:

assets/theme-css/pst/abstracts/_accessibility.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@
7070
$rgb-col: map.merge(
7171
$rgb-col,
7272
(
73-
$channel:
74-
math.pow(math.div((math.div($value, 255) + 0.055), 1.055), 2.4),
73+
$channel: math.pow(
74+
math.div((math.div($value, 255) + 0.055), 1.055),
75+
2.4
76+
),
7577
)
7678
);
7779
}

assets/theme-css/pst/variables/_color.scss

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
/* Assign base colors for the PyData theme */
2727
$color-palette: (
2828
// Primary color
29-
"teal":
30-
(
29+
"teal": (
3130
"50": #f4fbfc,
3231
"100": #e9f6f8,
3332
"200": #d0ecf1,
@@ -40,8 +39,7 @@ $color-palette: (
4039
"900": #021b1f,
4140
),
4241
// Secondary color
43-
"violet":
44-
(
42+
"violet": (
4543
"50": #f4eefb,
4644
"100": #e0c7ff,
4745
"200": #d5b4fd,
@@ -54,8 +52,7 @@ $color-palette: (
5452
"900": #1e0e39,
5553
),
5654
// Neutrals
57-
"gray":
58-
(
55+
"gray": (
5956
"50": #f9f9fa,
6057
"100": #f3f4f5,
6158
"200": #e5e7ea,
@@ -68,8 +65,7 @@ $color-palette: (
6865
"900": #14181e,
6966
),
7067
// Accent color
71-
"pink":
72-
(
68+
"pink": (
7369
"50": #fcf8fd,
7470
"100": #fcf0fa,
7571
"200": #f8dff5,
@@ -161,8 +157,7 @@ $pst-semantic-colors: (
161157
"bg-dark": #002f17,
162158
),
163159
// This is based on the warning color
164-
"attention":
165-
(
160+
"attention": (
166161
"light": var(--pst-color-warning),
167162
"bg-light": var(--pst-color-warning-bg),
168163
"dark": var(--pst-color-warning),
@@ -233,15 +228,13 @@ $pst-semantic-colors: (
233228
// DEPTH COLORS - you can see the elevation colours and shades
234229
// in the Figma file https://www.figma.com/file/rUrrHGhUBBIAAjQ82x6pz9/PyData-Design-system---proposal-for-implementation-(2)?node-id=1492%3A922&t=sQeQZehkOzposYEg-1
235230
// background: color of the canvas / the furthest back layer
236-
"background":
237-
(
231+
"background": (
238232
"light": #{map-deep-get($color-palette, "foundation", "white")},
239233
"dark": #{map-deep-get($color-palette, "foundation", "black")},
240234
),
241235
// on-background: provides slight contrast against background
242236
// (by use of shadows in light theme)
243-
"on-background":
244-
(
237+
"on-background": (
245238
"light": #{map-deep-get($color-palette, "foundation", "white")},
246239
"dark": #{map-deep-get($color-palette, "gray", "800")},
247240
),
@@ -250,8 +243,7 @@ $pst-semantic-colors: (
250243
"dark": #{map-deep-get($color-palette, "gray", "700")},
251244
),
252245
// on_surface: object on top of surface object (without shadows)
253-
"on-surface":
254-
(
246+
"on-surface": (
255247
"light": #{map-deep-get($color-palette, "gray", "800")},
256248
"dark": $foundation-light-gray,
257249
),

assets/theme-css/pst/variables/_fonts.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ html {
3333

3434
// Font family
3535
// These are adapted from https://systemfontstack.com/ */
36-
--pst-font-family-base-system: -apple-system, "BlinkMacSystemFont", "Segoe UI",
37-
"Helvetica Neue", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
38-
"Segoe UI Symbol";
36+
--pst-font-family-base-system: -apple-system, "BlinkMacSystemFont",
37+
"Segoe UI", "Helvetica Neue", "Arial", sans-serif, "Apple Color Emoji",
38+
"Segoe UI Emoji", "Segoe UI Symbol";
3939
--pst-font-family-monospace-system: "SFMono-Regular", "Menlo", "Consolas",
4040
"Monaco", "Liberation Mono", "Lucida Console", monospace;
4141
--pst-font-family-base: var(--pst-font-family-base-system);

0 commit comments

Comments
 (0)