Skip to content

Commit

Permalink
Merge branch 'mau-v4' of github.com:pelican-plugins/mau-reader into m…
Browse files Browse the repository at this point in the history
…au-v4
  • Loading branch information
lgiordani committed Apr 28, 2024
2 parents d287277 + 3c67dcd commit 7872c40
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
# See https://pre-commit.com/hooks.html for info on hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -21,11 +21,11 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.12.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.1.8
hooks:
- id: ruff
26 changes: 15 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]

requires-python = ">=3.8.1,<4.0"
dependencies = [
"pelican>=4.5",
Expand All @@ -37,11 +39,13 @@ Funding = "https://donate.getpelican.com/"
[project.optional-dependencies]
markdown = ["markdown>=3.4"]

[tool.pdm]

[tool.pdm.dev-dependencies]
lint = [
"black>=23.7.0",
"invoke>=2.2.0",
"ruff>=0.0.280",
"ruff>=0.1.8",
]
test = [
"markdown>=3.4",
Expand All @@ -50,6 +54,14 @@ test = [
"pytest-sugar>=0.9.7",
]

[tool.pdm.build]
source-includes = [
"CHANGELOG.md",
"CONTRIBUTING.md",
]
includes = ["pelican/"]
excludes = ["tasks.py"]

[tool.autopub]
project-name = "Mau Reader"
git-username = "botpub"
Expand Down Expand Up @@ -91,8 +103,6 @@ ignore = [
"PLW2901", # `for` loop variable overwritten by assignment target
]

target-version = "py38"

[tool.ruff.per-file-ignores]
"**/test_mau_reader.py" = ["D103", "E501"]

Expand All @@ -102,11 +112,5 @@ force-sort-within-sections = true
known-first-party = ["pelican"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.sdist]
include = ["pelican/plugins/mau_reader/*.py"]

[tool.hatch.build.targets.wheel]
include = ["pelican/plugins/mau_reader/*.py"]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

0 comments on commit 7872c40

Please sign in to comment.