Skip to content

Commit 7e003ea

Browse files
authored
remove ollama summarizer and frontmatter_checking things for the new module (#642)
* remove ollama summarizer and frontmatter_checking things for the new module * Update check.yml - playwright.yml explicit Python 3.13 version with cahed pip * update requirements
1 parent fcb226c commit 7e003ea

File tree

9 files changed

+21
-91
lines changed

9 files changed

+21
-91
lines changed

.frontmatter_check.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Pattern-specific rules
2+
patterns:
3+
- name: "Global Defaults"
4+
pattern: "blog./*.md" # match ALL `.md` files
5+
rules:
6+
- field_name: date
7+
- field_name: description
8+
- field_name: lang
9+
- field_name: layout
10+
- field_name: title

.github/workflows/check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.13"
1416
- uses: pre-commit/action@v3.0.0

.github/workflows/playwright.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: "3.12"
23+
python-version: "3.13"
24+
cache: "pip"
2425
- name: Install dependencies
2526
run: |
2627
python -m pip install --upgrade pip
27-
pip install -r requirements-dev.txt
28+
pip install -r requirements.txt
2829
python -m playwright install --with-deps chromium
2930
- name: Set up Ruby
3031
uses: ruby/setup-ruby@v1

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ repos:
3232
rev: 23.9.1
3333
hooks:
3434
- id: black
35-
- repo: local
35+
- repo: https://github.com/kjaymiller/frontmatter-check
36+
rev: "2025.1.1b2"
3637
hooks:
37-
- id: check-for-layout
38-
name: check-for-layout
39-
files: _posts/.*.md
40-
entry: python update_layout.py
41-
language: python
42-
additional_dependencies: [typer, python-frontmatter, typing-extensions]
38+
- id: frontmatter-check

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The diagram below explains how information is generated for the about page, show
117117

118118
![Bundle install terminal](/assets/images/bundle_install_terminal.png)
119119

120-
- Afterwards, run the command `pip install -r requirements-dev.txt` to install the python dev dependencies.
120+
- Afterwards, run the command `pip install -r requirements.txt` to install the python dev dependencies.
121121

122122
![Pip install terminal](/assets/images/pip_install_terminal.png)
123123

_data/global_leadership.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

ollama_summarizer.py

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ pre-commit
66
typer
77

88
# Automation
9-
langchain
10-
langchain_community
11-
langchain_ollama
129
rich
13-
python-frontmatter
1410

1511
# Testing
12+
python-frontmatter
1613
ephemeral_port_reserve
1714
pytest-playwright
1815
pytest-xprocess

update_layout.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)