Skip to content

Commit

Permalink
remove ollama summarizer and frontmatter_checking things for the new …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
kjaymiller authored Jan 29, 2025
1 parent fcb226c commit 7e003ea
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 91 deletions.
10 changes: 10 additions & 0 deletions .frontmatter_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Pattern-specific rules
patterns:
- name: "Global Defaults"
pattern: "blog./*.md" # match ALL `.md` files
rules:
- field_name: date
- field_name: description
- field_name: lang
- field_name: layout
- field_name: title
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: pre-commit/action@v3.0.0
5 changes: 3 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.13"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements.txt
python -m playwright install --with-deps chromium
- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
10 changes: 3 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ repos:
rev: 23.9.1
hooks:
- id: black
- repo: local
- repo: https://github.com/kjaymiller/frontmatter-check
rev: "2025.1.1b2"
hooks:
- id: check-for-layout
name: check-for-layout
files: _posts/.*.md
entry: python update_layout.py
language: python
additional_dependencies: [typer, python-frontmatter, typing-extensions]
- id: frontmatter-check
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The diagram below explains how information is generated for the about page, show

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

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

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

Expand Down
4 changes: 0 additions & 4 deletions _data/global_leadership.yml

This file was deleted.

42 changes: 0 additions & 42 deletions ollama_summarizer.py

This file was deleted.

5 changes: 1 addition & 4 deletions requirements-dev.txt → requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ pre-commit
typer

# Automation
langchain
langchain_community
langchain_ollama
rich
python-frontmatter

# Testing
python-frontmatter
ephemeral_port_reserve
pytest-playwright
pytest-xprocess
30 changes: 0 additions & 30 deletions update_layout.py

This file was deleted.

0 comments on commit 7e003ea

Please sign in to comment.