Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize differences with upstream plugin template #17

Merged
merged 3 commits into from
Nov 3, 2024
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
27 changes: 27 additions & 0 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"template": "https://github.com/getpelican/cookiecutter-pelican-plugin",
"commit": "c3e12ed61d60be88e8cae2488f6edbfab8085ba4",
"checkout": null,
"context": {
"cookiecutter": {
"plugin_name": "Web Assets",
"repo_name": "webassets",
"package_name": "webassets",
"distribution_name": "pelican-webassets",
"version": "2.1.0",
"description": "Pelican plugin to manage web assets such as CSS and JS files",
"authors": "{name = \"Pelican Dev Team\", email = \"[email protected]\"}",
"keywords": "\"pelican\", \"plugin\", \"webassets\", \"css\", \"js\", \"minimization\", \"compilation\"",
"readme": "README.md",
"contributing": "CONTRIBUTING.md",
"license": "GNU Affero General Public License v3|AGPL-3.0",
"repo_url": "https://github.com/pelican-plugins/webassets",
"dev_status": "5 - Production/Stable",
"tests_exist": true,
"python_version": "~=3.9",
"pelican_version": ">=4.5",
"_template": "https://github.com/getpelican/cookiecutter-pelican-plugin"
}
},
"directory": null
}
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install pdm

- name: Set up Python ${{ matrix.python-version }} & PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -29,8 +30,7 @@ jobs:
version: "2.20.0"

- name: Install dependencies
run: |
pdm install
run: pdm install

- name: Run tests
run: pdm run invoke tests
Expand All @@ -49,15 +49,14 @@ jobs:
with:
retry: true

- name: Install pdm
- name: Set up Python & PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
version: "2.20.0"

- name: Install dependencies
run: |
pdm install
run: pdm install

- name: Run linters
run: pdm run invoke lint --diff
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.7.2
hooks:
- id: ruff
- id: ruff-format
Expand Down
128 changes: 39 additions & 89 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pelican/plugins/webassets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .webassets import * # NOQA
from .webassets import * # noqa: F403,PGH004,RUF100
Loading