summaryrefslogtreecommitdiff
path: root/packages/responsive-image/pyproject.toml
blob: c3f192c12b0f468d85b5f3d9bce2a354bc9a43e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[project]
name = "lektor-responsive-image"
dynamic = ["version", "readme"]
description = "Lektor plugin to help with multi-resolution responsive images"
urls.Home = "https://github.com/dairiki/lektor-responsive-image"
keywords = [
    "Lektor plugin",
    "responsive images",
    "multi-resolution images",
    "srcset",
]
license.file = "LICENSE"
authors = [
    {name = "Jeff Dairiki", email = "dairiki@dairiki.org"},
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Plugins",
    "Environment :: Web Environment",
    "Framework :: Lektor",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Text Processing :: Markup :: HTML",
]
requires-python = ">=3.8"

[project.entry-points."lektor.plugins"]
responsive-image = "lektor_responsive_image:ResponsiveImagePlugin"

[tool.pdm.build]
excludes = ["pdm_build.py"]
source-includes = ["CHANGES.md", "tests/", "tox.ini"]

[tool.pdm.version]
source = "scm"

[tool.pdm.dev-dependencies]
dev = [
    "lektor>=3.4.0a0",
    "pytest>=7.4.4",
    "ruff>=0.1.14",
]

[tool.pdm.scripts]
tests = "pytest tests -ra"

[tool.coverage.run]
parallel = true
source_pkgs = [
    "lektor_responsive_image",
]

[tool.coverage.paths]
paths = [
    "lektor-responsive-image",
    ".tox/py*/*/lektor-responsive-image",
]

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    '^\s*\.\.\.\s*$',
    '^\s*raise\s+NotImplementedError\(\)\s*$',
]

[tool.ruff]
extend-exclude = [".pdm-build"]
explicit-preview-rules = true
allowed-confusables = ["’", "–"]

[tool.ruff.lint]
select = [
    "F", # pyflakes
    "E", "W", # pycodestyle
    "UP", # pyupgrade
    "B", # flake8-bugbear
    "Q", # flake8-quotes
    "YTT", # flake8-2020
    "C4", # flake8-comprehensions
    "T10", # flake8-debugger
    "EM", # flake8-errmsg
    "FA", # flake8-future-annotations
    "T20", # flake8-print
    "RSE", # flake8-raise
    "I", # isort
    "C90", # mccabe
    "PGH", # pygrep-hooks
    #"PL", # pylint
]

[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
known-first-party = [
    "conftest",
    "lektor_responsive_images",
]