Skip to content

Commit 91c74d0

Browse files
authored
Merge pull request #17 from pelican-plugins/cruft
Minimize differences with upstream plugin template
2 parents 30571cb + 8815806 commit 91c74d0

File tree

8 files changed

+167
-151
lines changed

8 files changed

+167
-151
lines changed

.cruft.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
3+
"commit": "c3e12ed61d60be88e8cae2488f6edbfab8085ba4",
4+
"checkout": null,
5+
"context": {
6+
"cookiecutter": {
7+
"plugin_name": "Web Assets",
8+
"repo_name": "webassets",
9+
"package_name": "webassets",
10+
"distribution_name": "pelican-webassets",
11+
"version": "2.1.0",
12+
"description": "Pelican plugin to manage web assets such as CSS and JS files",
13+
"authors": "{name = \"Pelican Dev Team\", email = \"authors@getpelican.com\"}",
14+
"keywords": "\"pelican\", \"plugin\", \"webassets\", \"css\", \"js\", \"minimization\", \"compilation\"",
15+
"readme": "README.md",
16+
"contributing": "CONTRIBUTING.md",
17+
"license": "GNU Affero General Public License v3|AGPL-3.0",
18+
"repo_url": "https://github.com/pelican-plugins/webassets",
19+
"dev_status": "5 - Production/Stable",
20+
"tests_exist": true,
21+
"python_version": "~=3.9",
22+
"pelican_version": ">=4.5",
23+
"_template": "https://github.com/getpelican/cookiecutter-pelican-plugin"
24+
}
25+
},
26+
"directory": null
27+
}

.github/workflows/main.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
2020
- uses: actions/checkout@v4
2121
with:
2222
persist-credentials: false
23-
- name: Install pdm
23+
24+
- name: Set up Python ${{ matrix.python-version }} & PDM
2425
uses: pdm-project/setup-pdm@v4
2526
with:
2627
python-version: ${{ matrix.python-version }}
@@ -29,8 +30,7 @@ jobs:
2930
version: "2.20.0"
3031

3132
- name: Install dependencies
32-
run: |
33-
pdm install
33+
run: pdm install
3434

3535
- name: Run tests
3636
run: pdm run invoke tests
@@ -49,15 +49,14 @@ jobs:
4949
with:
5050
retry: true
5151

52-
- name: Install pdm
52+
- name: Set up Python & PDM
5353
uses: pdm-project/setup-pdm@v4
5454
with:
5555
python-version: "3.10"
5656
version: "2.20.0"
5757

5858
- name: Install dependencies
59-
run: |
60-
pdm install
59+
run: pdm install
6160

6261
- name: Run linters
6362
run: pdm run invoke lint --diff

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.7.1
24+
rev: v0.7.2
2525
hooks:
2626
- id: ruff
2727
- id: ruff-format

pdm.lock

+39-89
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pelican/plugins/webassets/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .webassets import * # NOQA
1+
from .webassets import * # noqa: F403,PGH004,RUF100

0 commit comments

Comments
 (0)