Skip to content

Commit fcf2fc2

Browse files
committed
chore: add and configure pre-commit
1 parent a866dea commit fcf2fc2

8 files changed

Lines changed: 649 additions & 21 deletions

File tree

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
5+
repos:
6+
- repo: local
7+
hooks:
8+
- id: astro
9+
name: Astro check
10+
entry: pnpm astro check
11+
language: system
12+
pass_filenames: false
13+
files: \.(ts|astro)$
14+
stages: [pre-commit]
15+
16+
- id: prettier
17+
name: Prettier
18+
entry: pnpm exec prettier --check src
19+
language: system
20+
pass_filenames: false
21+
files: \.(ts|tsx|js|jsx|json|css|md)$
22+
stages: [pre-commit]
23+
24+
- repo: https://github.com/compilerla/conventional-pre-commit
25+
rev: v4.3.0
26+
hooks:
27+
- id: conventional-pre-commit
28+
stages: [commit-msg]
29+
args: [--verbose]

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# 2026.es.pycon.org
2-
Pagina web para Pycon ES 2026
2+
3+
Website for the most important Python event in Spain in the year 2026.
4+
5+
## Requirements
6+
7+
- Node.js v22.0.0 (see `.nvmrc`)
8+
- pnpm
9+
- [pre-commit](https://pre-commit.com/)
310

411
## Installation
512

613
```bash
714
pnpm install
15+
pre-commit install
816
```
917

1018
## Development
@@ -25,7 +33,3 @@ pnpm build
2533
pnpm preview
2634
```
2735

28-
## Requirements
29-
30-
- Node.js v22.0.0 (see `.nvmrc`)
31-
- pnpm

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"tailwindcss": "^4.1.18"
2323
},
2424
"devDependencies": {
25+
"@astrojs/check": "^0.9.6",
2526
"prettier": "^3.7.4",
2627
"prettier-plugin-astro": "^0.14.1",
2728
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)