-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
121 lines (110 loc) · 2.71 KB
/
pyproject.toml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.scripts]
tests = "pytest --cov=lektor_git_timestamp --cov-fail-under=100 tests"
[project]
name = "lektor-git-timestamp"
dynamic = ["version", "readme"]
description = "Lektor type to deduce page modification time from git"
keywords = ["Lektor plugin",]
urls.Home = "https://github.com/dairiki/lektor-git-timestamp"
authors = [
{name = "Jeff Dairiki", email = "dairiki@dairiki.org"},
]
license = {file = "LICENSE"}
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 :: Software Development :: Version Control :: Git",
"Topic :: Text Processing",
]
requires-python = ">=3.8"
dependencies = [
"lektorlib>=1.2.1",
]
[project.entry-points."lektor.plugins"]
git-timestamp = "lektor_git_timestamp:GitTimestampPlugin"
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
includes = [
"lektor_git_timestamp.py",
]
source-includes = [
"CHANGES.md",
"README.md",
"tests/",
"tox.ini",
]
[tool.pdm.dev-dependencies]
dev = [
"lektor",
"mypy~=1.8.0",
"pdm-backend", # for mypy
"ruff>=0.1.14",
]
test = [
"pytest>=7.3.1",
"pytest-cov",
"packaging",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'^\s*\.\.\.\s*$',
'^\s*raise\s+NotImplementedError\(\)\s*$',
'^(el)?if TYPE_CHECKING:\s*',
]
[tool.pytest.ini_options]
addopts = "--cov-report=term-missing --cov-report=html"
[tool.mypy]
files = [
"$MYPY_CONFIG_FILE_DIR/**/*.py",
]
strict = true
[[tool.mypy.overrides]]
module = [
"lektor.*",
]
ignore_missing_imports = true
[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_git_timestamp",
]