-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add pre-commit checks and fix its complaints #547
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
86ec6de
Add pre-commit cheecks and fix complaints
egeakman 4eb738f
Add pre-commit instructions to README and add prettier check
egeakman e6ac910
prettier
egeakman c910475
Revert prettier changes
egeakman 1b1b4cd
Prettier without MDX
egeakman c3799f5
Revert prettier changes once again
egeakman 8d1849f
Further reduce the noise
egeakman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ["--maxkb", "5000"] | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
exclude_types: ["svg"] | ||
- id: trailing-whitespace | ||
exclude_types: ["svg"] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
args: ["--tab-width", "2", "--trailing-comma", "es5"] | ||
exclude_types: ["mdx"] | ||
exclude: "pnpm-lock.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,3 @@ const { class: className } = Astro.props; | |
</g> | ||
</g> | ||
</svg> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export const Note = ({ children }: { children: string }) => { | ||
return <p className="note text-xl p-4 border-l-4 border-primary">{children}</p>; | ||
return ( | ||
<p className="note text-xl p-4 border-l-4 border-primary">{children}</p> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Place any global data in this file. | ||
// You can import this data from anywhere in your site by using the `import` keyword. | ||
|
||
export const SITE_TITLE = 'Astro Blog'; | ||
export const SITE_DESCRIPTION = 'Welcome to my website!'; | ||
export const SITE_TITLE = "Astro Blog"; | ||
export const SITE_DESCRIPTION = "Welcome to my website!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,14 @@ title: EuroPython Prague, You're invited! | |
|
||
Welcome to the 23rd EuroPython. We're the oldest and longest running | ||
volunteer-led Python programming conference on the planet! Join us in July in | ||
the vibrant Bohemian city Prague. We'll be together, celebrating our shared passion for Python and its community! | ||
the vibrant Bohemian city Prague. We'll be together, celebrating our shared | ||
passion for Python and its community! | ||
|
||
A week of all things Python: | ||
|
||
- Monday & Tuesday, 8 & 9 July: Tutorials & Workshops | ||
- Wednesday–Friday, 10-12 July: Conference talks & sponsor exhibition | ||
- Saturday & Sunday, 13 & 14 July: Sprints | ||
|
||
If you have any questions, feel free to contact us at [[email protected]](mailto:[email protected]). | ||
If you have any questions, feel free to contact us at | ||
[[email protected]](mailto:[email protected]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,93 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], | ||
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], | ||
|
||
theme: { | ||
colors: { | ||
black: "#000", | ||
white: "#fff", | ||
text: "var(--color-text)", | ||
transparent: "transparent", | ||
current: "currentColor", | ||
inherit: "inherit", | ||
theme: { | ||
colors: { | ||
black: "#000", | ||
white: "#fff", | ||
text: "var(--color-text)", | ||
transparent: "transparent", | ||
current: "currentColor", | ||
inherit: "inherit", | ||
|
||
"text-inverted": "var(--color-text-inverted)", | ||
"text-inverted": "var(--color-text-inverted)", | ||
|
||
"body-inverted": "#001c13", | ||
"body-background": "var(--color-body-background)", | ||
"body-light": "#888", | ||
"body-inverted": "#001c13", | ||
"body-background": "var(--color-body-background)", | ||
"body-light": "#888", | ||
|
||
"hero-primary": "var(--color-hero-primary)", | ||
"hero-secondary": "var(--color-hero-secondary)", | ||
"hero-primary": "var(--color-hero-primary)", | ||
"hero-secondary": "var(--color-hero-secondary)", | ||
|
||
primary: "var(--color-primary)", | ||
"primary-hover": "var(--color-primary-hover)", | ||
"primary-active": "var(--color-primary-active)", | ||
button: "var(--color-button)", | ||
"button-hover": "var(--color-button-hover)", | ||
primary: "var(--color-primary)", | ||
"primary-hover": "var(--color-primary-hover)", | ||
"primary-active": "var(--color-primary-active)", | ||
button: "var(--color-button)", | ||
"button-hover": "var(--color-button-hover)", | ||
|
||
secondary: "var(--color-secondary)", | ||
"secondary-dark": "var(--color-secondary-dark)", | ||
"secondary-darkest": "var(--color-secondary-darkest)", | ||
"secondary-light": "var(--color-secondary-light)", | ||
secondary: "var(--color-secondary)", | ||
"secondary-dark": "var(--color-secondary-dark)", | ||
"secondary-darkest": "var(--color-secondary-darkest)", | ||
"secondary-light": "var(--color-secondary-light)", | ||
|
||
"session-beginner": "#63d451", | ||
"session-intermediate": "#ffcd45", | ||
"session-advanced": "#d34848", | ||
"session-none": "var(--color-secondary-light)", | ||
"session-beginner": "#63d451", | ||
"session-intermediate": "#ffcd45", | ||
"session-advanced": "#d34848", | ||
"session-none": "var(--color-secondary-light)", | ||
|
||
"sponsor-keystone": "#5c9f92", | ||
"sponsor-diamond": "#568497", | ||
"sponsor-platinum": "#6b6c6e", | ||
"sponsor-gold": "#f5c251", | ||
"sponsor-silver": "#707172", | ||
"sponsor-bronze": "#6e6151", | ||
"sponsor-patron": "#a11217", | ||
"sponsor-keystone": "#5c9f92", | ||
"sponsor-diamond": "#568497", | ||
"sponsor-platinum": "#6b6c6e", | ||
"sponsor-gold": "#f5c251", | ||
"sponsor-silver": "#707172", | ||
"sponsor-bronze": "#6e6151", | ||
"sponsor-patron": "#a11217", | ||
|
||
red: "#ce3333", | ||
"keynoter-info": "hsla(0,0%,100%,.85)", | ||
}, | ||
extend: { | ||
aspectRatio: { | ||
hero: "2.4380530973", | ||
}, | ||
fontFamily: { | ||
system: ["system-ui", "sans-serif"], | ||
title: [ | ||
"Inter Variable", | ||
"-apple-system", | ||
"BlinkMacSystemFont", | ||
"Segoe UI", | ||
"Roboto", | ||
"Helvetica", | ||
"Arial", | ||
"sans-serif", | ||
"Apple Color Emoji", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
], | ||
sans: [ | ||
"-apple-system", | ||
"BlinkMacSystemFont", | ||
"Segoe UI", | ||
"Roboto", | ||
"Helvetica", | ||
"Arial", | ||
"sans-serif", | ||
"Apple Color Emoji", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
], | ||
}, | ||
typography: (theme) => ({ | ||
DEFAULT: { | ||
css: { | ||
color: theme("colors.text"), | ||
"--tw-prose-headings": theme("colors.white"), | ||
}, | ||
}, | ||
}), | ||
}, | ||
}, | ||
plugins: [require("@tailwindcss/typography")], | ||
red: "#ce3333", | ||
"keynoter-info": "hsla(0,0%,100%,.85)", | ||
}, | ||
extend: { | ||
aspectRatio: { | ||
hero: "2.4380530973", | ||
}, | ||
fontFamily: { | ||
system: ["system-ui", "sans-serif"], | ||
title: [ | ||
"Inter Variable", | ||
"-apple-system", | ||
"BlinkMacSystemFont", | ||
"Segoe UI", | ||
"Roboto", | ||
"Helvetica", | ||
"Arial", | ||
"sans-serif", | ||
"Apple Color Emoji", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
], | ||
sans: [ | ||
"-apple-system", | ||
"BlinkMacSystemFont", | ||
"Segoe UI", | ||
"Roboto", | ||
"Helvetica", | ||
"Arial", | ||
"sans-serif", | ||
"Apple Color Emoji", | ||
"Segoe UI Emoji", | ||
"Segoe UI Symbol", | ||
], | ||
}, | ||
typography: (theme) => ({ | ||
DEFAULT: { | ||
css: { | ||
color: theme("colors.text"), | ||
"--tw-prose-headings": theme("colors.white"), | ||
}, | ||
}, | ||
}), | ||
}, | ||
}, | ||
plugins: [require("@tailwindcss/typography")], | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's currently set to 5MB