Skip to content

Commit b905953

Browse files
committed
chore: Apply upstream template changes via Cruft
1 parent 6d0723c commit b905953

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
3-
"commit": "1c97f677813433969687d75cc1d85b4f51448bda",
3+
"commit": "4aa8104df7e76fa2dcbf583dcec8052e81d915ef",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -21,7 +21,7 @@
2121
"python_version": ">=3.8.1,<4.0",
2222
"pelican_version": ">=4.5",
2323
"_template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
24-
"_commit": "1c97f677813433969687d75cc1d85b4f51448bda"
24+
"_commit": "4aa8104df7e76fa2dcbf583dcec8052e81d915ef"
2525
}
2626
},
2727
"directory": null

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121
with:
2222
persist-credentials: false
2323

@@ -42,14 +42,14 @@ jobs:
4242
runs-on: ubuntu-latest
4343

4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
with:
4747
persist-credentials: false
4848

4949
- name: Set up Python & PDM
5050
uses: pdm-project/setup-pdm@v4
5151
with:
52-
python-version: "3.10"
52+
python-version: "3.11"
5353

5454
- name: Install dependencies
5555
run: pdm install
@@ -69,12 +69,12 @@ jobs:
6969
id-token: write
7070

7171
steps:
72-
- uses: actions/checkout@v4
72+
- uses: actions/checkout@v5
7373

7474
- name: Set up Python
75-
uses: actions/setup-python@v5
75+
uses: actions/setup-python@v6
7676
with:
77-
python-version: "3.10"
77+
python-version: "3.11"
7878

7979
- name: Check release
8080
id: check_release

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55
# See https://pre-commit.com/hooks.html for info on hooks
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v5.0.0
8+
rev: v6.0.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-ast
@@ -21,8 +21,8 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.11.0
24+
rev: v0.14.2
2525
hooks:
26-
- id: ruff
26+
- id: ruff-check
2727
- id: ruff-format
2828
args: ["--check"]

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ classifiers = [
1515
"License :: OSI Approved :: GNU Affero General Public License v3",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python :: 3",
18-
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
2120
"Programming Language :: Python :: 3.12",
2221
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2323
"Topic :: Internet :: WWW/HTTP",
2424
"Topic :: Multimedia :: Graphics",
2525
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -44,7 +44,7 @@ markdown = ["markdown>=3.4"]
4444
[dependency-groups]
4545
lint = [
4646
"invoke>=2.2",
47-
"ruff>=0.11.0,<1.0.0",
47+
"ruff>=0.14.2,<1.0.0",
4848
]
4949
test = [
5050
"invoke>=2.2",
@@ -62,7 +62,7 @@ source-includes = [
6262
"CONTRIBUTING.md",
6363
]
6464
includes = ["pelican/"]
65-
excludes = ["**/.DS_Store", "**/test_data/**", "tasks.py"]
65+
excludes = ["**/.DS_Store"]
6666

6767
[tool.autopub]
6868
project-name = "Image Process"

tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
from invoke import task
88

99
logger = logging.getLogger(__name__)
10+
level = logging.INFO
11+
logger.setLevel(level)
12+
console_handler = logging.StreamHandler()
13+
console_handler.setLevel(level)
14+
logger.addHandler(console_handler)
1015

1116
PKG_NAME = "image_process"
1217
PKG_PATH = Path(f"pelican/plugins/{PKG_NAME}")

0 commit comments

Comments
 (0)