Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@main
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: "${{ github.event.inputs.git_rev }}"

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
submodules: true

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/publish_post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v5

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
uses: actions/checkout@v6
with:
ref: "${{ github.event.inputs.git_rev }}"
submodules: true

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
Expand Down
67 changes: 34 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"markdown-del-ins>=1.0.0",
"pelican-seo>=1.3.0",
"pelican[markdown]>=4.11.0",
"markdown-del-ins>=1.0.0",
"pelican-seo>=1.3.0",
"pelican[markdown]>=4.11.0",
"pelican-i18n-subsites",
]

[dependency-groups]
dev = [
"pre-commit-hooks>=5.0.0",
"pre-commit>=4.1.0",
"ruff>=0.9.3",
"livereload>=2.7.1",
"invoke>=2.2.0",
"commitizen>=4.1.1",
"questionary>=2.1.0",
"pip-audit>=2.7.3",
"pre-commit-hooks>=5.0.0",
"pre-commit>=4.1.0",
"ruff>=0.9.3",
"livereload>=2.7.1",
"invoke>=2.2.0",
"commitizen>=4.1.1",
"questionary>=2.1.0",
"pip-audit>=2.7.3",
]

[tool.commitizen]
Expand All @@ -36,17 +37,17 @@ info = "git commit convention for PyCon Taiwan blog"
type = "list"
name = "change_type"
choices = [
"new post",
"post update",
"new draft",
"draft update",
"post metadata",
"fix typo",
"theme",
"static page",
"config",
"dependency",
"github-actions",
"new post",
"post update",
"new draft",
"draft update",
"post metadata",
"fix typo",
"theme",
"static page",
"config",
"dependency",
"github-actions",
]
message = "What type of commit is it?"

Expand All @@ -62,17 +63,17 @@ line-length = 88
[tool.ruff.lint]
ignore = ["E501", "D1", "D415"]
extend-select = [
# Enable entire ruff rule section
"I", # Missing required import (auto-fixable)
"UP", # Pyupgrade
"TCH", # Rules around TYPE_CHECKING blocks
"FA100",
"G", # flake8-logging-format rules
"LOG", # flake8-logging rules, most of them autofixable
"PT", # flake8-pytest-style rules
"TID25", # flake8-tidy-imports rules
"E", # pycodestyle rules
"W", # pycodestyle rules
# Enable entire ruff rule section
"I", # Missing required import (auto-fixable)
"UP", # Pyupgrade
"TCH", # Rules around TYPE_CHECKING blocks
"FA100",
"G", # flake8-logging-format rules
"LOG", # flake8-logging rules, most of them autofixable
"PT", # flake8-pytest-style rules
"TID25", # flake8-tidy-imports rules
"E", # pycodestyle rules
"W", # pycodestyle rules
]

[tool.ruff.lint.isort]
Expand Down
2 changes: 1 addition & 1 deletion theme/Flex
Loading