Skip to content

Commit 2c6255b

Browse files
committed
Update pre-commit config.
1 parent f96dba5 commit 2c6255b

33 files changed

+198
-463
lines changed

.github/workflows/update-data.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
- name: Open pull request
2727
uses: peter-evans/create-pull-request@v6
2828
with:
29-
author:
30-
github-actions[bot] <github-actions[bot]@users.noreply.github.com>
31-
committer:
32-
github-actions[bot] <github-actions[bot]@users.noreply.github.com>
29+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
30+
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3331
commit-message: "🆕 Update data"
3432
title: "🆕 Update data"
3533
body: "🆕 Update data"

.pre-commit-config.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,31 @@ repos:
2121
rev: v4.0.0-alpha.8
2222
hooks:
2323
- id: prettier
24-
entry: prettier --config .prettierrc --write
24+
entry: pnpm run format:files
2525
exclude: "pnpm-lock.yaml"
2626
exclude_types: ["svg", "editorconfig", "gitignore"]
27+
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
2728

2829
- repo: local
2930
hooks:
3031
- id: local_prettier
31-
name: prettier
32+
name: local prettier
3233
entry: pnpm run format:files
33-
language: node
34+
language: system
3435
types_or: ["text"]
3536
exclude_types: ["editorconfig", "gitignore"]
36-
additional_dependencies: ["prettier", "prettier-plugin-astro"]
37-
files: \.(astro|mdx|md|yml|yaml|ts|js|mjs)$
37+
files: \.(astro|mdx|md|yml|yaml|ts|tsx|js|mjs)$
3838

3939
- id: astro-check
4040
name: astro check
41-
entry: astro check
42-
language: node
41+
entry: pnpm run astro check
42+
language: system
4343
files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
4444
pass_filenames: false
45-
additional_dependencies: ["astro", "@astrojs/check"]
4645

4746
- id: astro-build
4847
name: astro build
49-
entry: astro build
50-
language: node
48+
entry: pnpm run astro build
49+
language: system
5150
files: "^(?:public|src)/.+|astro\\.config\\.mjs|tsconfig\\.json"
5251
pass_filenames: false
53-
additional_dependencies: ["astro"]

pnpm-lock.yaml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/BaseHead.astro

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ const { title, description, image = "/social-card.png" } = Astro.props;
5353
<meta http-equiv="X-Clacks-Overhead" content="GNU Oier Etxaniz" />
5454
<meta http-equiv="X-Clacks-Overhead" content="GNU Russel Winder" />
5555

56-
<script
57-
defer
58-
is:inline
59-
data-domain="ep2025.europython.eu"
60-
src="https://plausible.io/js/script.js"></script>
56+
<script defer is:inline data-domain="ep2025.europython.eu" src="https://plausible.io/js/script.js"
57+
></script>
6158

62-
<script
63-
is:inline
64-
src="https://kit.fontawesome.com/14a4971ab3.js"
65-
crossorigin="anonymous"></script>
59+
<script is:inline src="https://kit.fontawesome.com/14a4971ab3.js" crossorigin="anonymous"></script>

src/components/accordion/accordion.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ const { title, id } = Astro.props;
2727
document.addEventListener("DOMContentLoaded", () => {
2828
const hash = window.location.hash.substring(1); // Remove #
2929
if (hash) {
30-
const details = document.getElementById(
31-
hash
32-
) as HTMLDetailsElement | null;
30+
const details = document.getElementById(hash) as HTMLDetailsElement | null;
3331
if (details) {
3432
details.open = true;
3533
}
3634
}
3735

3836
// Update the URL when a detail is toggled
3937
const detailsElements = document.querySelectorAll("details");
40-
detailsElements.forEach((details) => {
38+
detailsElements.forEach(details => {
4139
details.addEventListener("toggle", () => {
4240
const id = details.id;
4341
if (details.open) {

src/components/button-link/button-link.astro

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@ export interface Props {
1010
isExternal?: boolean;
1111
}
1212
13-
const {
14-
url,
15-
className = "",
16-
secondary = false,
17-
disabled = false,
18-
isExternal,
19-
} = Astro.props;
20-
const resolvedIsExternal =
21-
isExternal !== undefined ? isExternal : url?.startsWith("http");
13+
const { url, className = "", secondary = false, disabled = false, isExternal } = Astro.props;
14+
const resolvedIsExternal = isExternal !== undefined ? isExternal : url?.startsWith("http");
2215
---
2316

2417
<a
@@ -31,9 +24,5 @@ const resolvedIsExternal =
3124
>
3225
<slot />
3326

34-
{
35-
resolvedIsExternal && (
36-
<span class="inline-block ml-1 font-system text-lg leading-4">↗</span>
37-
)
38-
}
27+
{resolvedIsExternal && <span class="inline-block ml-1 font-system text-lg leading-4">↗</span>}
3928
</a>

src/components/footer.astro

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const gitVersion = import.meta.env.GIT_VERSION;
99
---
1010

1111
<Fullbleed className="bg-primary text-white">
12-
<footer
13-
class="max-w-4xl lg:max-w-6xl mx-auto py-16 lg:grid grid-cols-2 px-6 gap-60"
14-
>
12+
<footer class="max-w-4xl lg:max-w-6xl mx-auto py-16 lg:grid grid-cols-2 px-6 gap-60">
1513
<div>
1614
<nav class="mb-12">
1715
<h6 class="font-bold text-xl mb-6">Quicklinks</h6>
1816
<ul>
1917
{
20-
links.footer.map((item) => (
18+
links.footer.map(item => (
2119
<li class="list-none">
2220
<a
2321
href={item.path}
@@ -33,9 +31,7 @@ const gitVersion = import.meta.env.GIT_VERSION;
3331
</nav>
3432
</div>
3533

36-
<article
37-
class="flex flex-col lg:flex-row self-center gap-8 lg:gap-12 justify-end"
38-
>
34+
<article class="flex flex-col lg:flex-row self-center gap-8 lg:gap-12 justify-end">
3935
<div>
4036
<EPSLogo className="max-w-[100px] lg:max-w-[200px] h-auto w-full" />
4137
</div>
@@ -50,51 +46,30 @@ const gitVersion = import.meta.env.GIT_VERSION;
5046
</address>
5147

5248
<p class="mb-4">
53-
<a
54-
class="underline whitespace-nowrap"
55-
href="https://europython-society.org"
56-
>
49+
<a class="underline whitespace-nowrap" href="https://europython-society.org">
5750
europython-society.org <span> ↗</span>
5851
</a>
59-
<a
60-
class="underline whitespace-nowrap"
61-
href="https://blog.europython.eu"
62-
>
52+
<a class="underline whitespace-nowrap" href="https://blog.europython.eu">
6353
blog.europython.eu <span> ↗</span>
6454
</a>
6555
<br />
66-
<a
67-
class="underline whitespace-nowrap"
68-
href="https://fosstodon.org/@europython"
69-
>
56+
<a class="underline whitespace-nowrap" href="https://fosstodon.org/@europython">
7057
fosstodon.org/@europython <span> ↗</span>
7158
</a>
7259
<br />
73-
<a
74-
class="underline whitespace-nowrap"
75-
href="https://linkedin.com/company/europython"
76-
>
60+
<a class="underline whitespace-nowrap" href="https://linkedin.com/company/europython">
7761
linkedin.com/company/europython <span> ↗</span>
7862
</a>
7963
<br />
80-
<a
81-
class="underline whitespace-nowrap"
82-
href="https://bsky.app/profile/europython.eu"
83-
>
64+
<a class="underline whitespace-nowrap" href="https://bsky.app/profile/europython.eu">
8465
bsky.app/profile/europython.eu <span> ↗</span>
8566
</a>
8667
<br />
87-
<a
88-
class="underline whitespace-nowrap"
89-
href="https://github.com/europython"
90-
>
68+
<a class="underline whitespace-nowrap" href="https://github.com/europython">
9169
github.com/europython <span> ↗</span>
9270
</a>
9371
<br />
94-
<a
95-
class="underline whitespace-nowrap"
96-
href="https://twitter.com/europython"
97-
>
72+
<a class="underline whitespace-nowrap" href="https://twitter.com/europython">
9873
twitter.com/europython <span> ↗</span>
9974
</a>
10075
</p>

src/components/hero2/hero.astro

Lines changed: 17 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -10,89 +10,62 @@ const action1 = "/tickets";
1010
const action2 = "/sponsorship/sponsor/";
1111
---
1212

13-
<div
14-
class="bg-icons full-bleed relative flex flex-col items-center justify-center"
15-
style=""
16-
>
13+
<div class="bg-icons full-bleed relative flex flex-col items-center justify-center" style="">
1714
<div class="absolute inset-0 overflow-hidden -z-10">
1815
<!-- Left side icons -->
1916
<svg
2017
class="bg-icon top-[5%] left-[15%] rotate-[23deg] xl:block hidden"
2118
viewBox="-40 -40 200 200"
22-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
23-
>{"{}"}</text
24-
></svg
19+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">{"{}"}</text></svg
2520
>
2621
<svg
2722
class="bg-icon top-[30%] left-[5%] rotate-[42deg] xl:block hidden"
2823
viewBox="-40 -40 200 200"
29-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
30-
>#</text
31-
></svg
24+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">#</text></svg
3225
>
3326
<svg
3427
class="bg-icon bottom-[30%] left-[18%] rotate-[15deg] xl:block hidden"
3528
viewBox="-40 -40 200 200"
36-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
37-
>&lt;/&gt;</text
38-
></svg
29+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">&lt;/&gt;</text></svg
3930
>
4031
<svg
4132
class="bg-icon bottom-[5%] left-[7%] rotate-[10deg] xl:block hidden"
4233
viewBox="-40 -40 200 200"
43-
><text
44-
x="10"
45-
y="50"
46-
font-size="80"
47-
font-weight="bold"
48-
fill="#A0B7E9"
49-
set:html={"..."}
50-
/></svg
34+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9" set:html={"..."} /></svg
5135
>
5236

5337
<!-- Right side icons -->
5438
<svg
5539
class="bg-icon top-[5%] right-[17%] rotate-[30deg] xl:block hidden"
5640
viewBox="-40 -40 200 200"
57-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
58-
>&lt;/&gt;</text
59-
></svg
41+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">&lt;/&gt;</text></svg
6042
>
6143
<svg
6244
class="bg-icon top-[30%] right-[6%] rotate-[15deg] xl:block hidden"
6345
viewBox="-40 -40 200 200"
64-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
65-
>:=</text
66-
></svg
46+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">:=</text></svg
6747
>
6848
<svg
6949
class="bg-icon bottom-[30%] right-[20%] rotate-[45deg] xl:block hidden"
7050
viewBox="-40 -40 200 200"
71-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
72-
>&gt;&gt;&gt;</text
73-
></svg
51+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">&gt;&gt;&gt;</text></svg
7452
>
7553
<svg
7654
class="bg-icon bottom-[5%] right-[8%] rotate-[33deg] xl:block hidden"
7755
viewBox="-40 -40 200 200"
78-
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9"
79-
>ƒ(x)</text
80-
></svg
56+
><text x="10" y="50" font-size="80" font-weight="bold" fill="#A0B7E9">ƒ(x)</text></svg
8157
>
8258
</div>
8359
<div class="prose-xl relative z-10 text-center">
8460
<div class="flex items-center space-x-3 p-10 md:mt-20 justify-center">
8561
<div class="w-200 h-200 flex items-center justify-center">
8662
<Logo className="h-full block md:w-full lg:w-[200px] pr-3 lg:pr-8" />
8763
</div>
88-
<h1 class="text-5xl md:text-8xl lg:text-9xl m-0 font-bold text-[#17223A]">
89-
EuroPython
90-
</h1>
64+
<h1 class="text-5xl md:text-8xl lg:text-9xl m-0 font-bold text-[#17223A]">EuroPython</h1>
9165
</div>
9266
<p class="max-w-2xl mx-10 md:mx-40 text-center text-xl text-gray-700 mt-2">
93-
Discover the latest Python trends, learn from 180+ expert speakers,
94-
network with fellow developers, enjoy social events, and explore open
95-
spaces to spark new ideas.
67+
Discover the latest Python trends, learn from 180+ expert speakers, network with fellow
68+
developers, enjoy social events, and explore open spaces to spark new ideas.
9669
</p>
9770
</div>
9871
<!-- First 2x1 Grid -->
@@ -116,10 +89,7 @@ const action2 = "/sponsorship/sponsor/";
11689
</div>
11790
</div>
11891

119-
<div
120-
class="bluebox full-bleed relative flex flex-col items-center justify-center"
121-
style=""
122-
>
92+
<div class="bluebox full-bleed relative flex flex-col items-center justify-center" style="">
12393
<div class="bluebox-shift">
12494
<div class="hero-image overflow-hidden -mt-12">
12595
<!-- Image with Rounded Corners and Shadow -->
@@ -132,13 +102,9 @@ const action2 = "/sponsorship/sponsor/";
132102
</div>
133103
</div>
134104
<!-- 3x1 Grid with Conference Stats -->
135-
<div
136-
class="stats grid grid-cols-1 sm:grid-cols-3 gap-8 mx-20 md:mr-40 md:ml-40"
137-
>
105+
<div class="stats grid grid-cols-1 sm:grid-cols-3 gap-8 mx-20 md:mr-40 md:ml-40">
138106
<div class="p-4 bg-gray-100 rounded-lg flex items-center">
139-
<div
140-
class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4"
141-
>
107+
<div class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4">
142108
<svg
143109
class="w-30 h-30"
144110
stroke="#17223A"
@@ -157,9 +123,7 @@ const action2 = "/sponsorship/sponsor/";
157123
</div>
158124
</div>
159125
<div class="p-4 bg-gray-100 rounded-lg flex items-center">
160-
<div
161-
class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4"
162-
>
126+
<div class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4">
163127
<svg
164128
class="w-30 h-30"
165129
stroke="#17223A"
@@ -178,9 +142,7 @@ const action2 = "/sponsorship/sponsor/";
178142
</div>
179143
</div>
180144
<div class="p-4 bg-gray-100 rounded-lg flex items-center">
181-
<div
182-
class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4"
183-
>
145+
<div class="w-16 h-16 flex items-center justify-center rounded-full text-white mr-4">
184146
<svg
185147
class="w-30 h-30"
186148
stroke="#17223A"

src/components/hero2/icon-label.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const iconPath = `/icons/${icon}.svg`;
66

77
<!--<div class="flex items-center space-x-3">--><!-- Circle with SVG Icon --><!--<div class="w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center">--><!-- <img src={iconPath} alt={label} class="w-6 h-6" />--><!--</div>-->
88
<div class="flex items-center space-x-3 px-6">
9-
<div
10-
class="w-20 h-20 flex items-center justify-center rounded-full bg-[#D4D5E4]"
11-
>
9+
<div class="w-20 h-20 flex items-center justify-center rounded-full bg-[#D4D5E4]">
1210
<img src={iconPath} alt={label} class="w-10 h-10" />
1311
</div>
1412
<!--<span class="text-lg font-medium text-[#7B7EB9]">Label</span>-->

src/components/icons/target.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ const { class: className } = Astro.props;
1616
class={className}
1717
>
1818
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19-
<g
20-
id="Sponsors-v2"
21-
transform="translate(-81.000000, -5092.000000)"
22-
class="fill-current"
23-
>
19+
<g id="Sponsors-v2" transform="translate(-81.000000, -5092.000000)" class="fill-current">
2420
<g id="Benefits" transform="translate(79.000000, 4427.000000)">
2521
<g id="Group-12" transform="translate(0.000000, 516.000000)">
2622
<g id="Group-3" transform="translate(2.000000, 141.000000)">

0 commit comments

Comments
 (0)