-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (137 loc) · 3.74 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (137 loc) · 3.74 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "PyLD"
dynamic = ["version"]
description = "Python implementation of the JSON-LD API"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
authors = [
{ name = "Digital Bazaar", email = "support@digitalbazaar.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"cachetools",
"frozendict",
"lxml",
"rdflib",
]
[project.optional-dependencies]
requests = ["requests"]
aiohttp = ["aiohttp"]
requests-cache = ["requests-cache>=1.3"]
cachetools = ["cachetools"]
frozendict = ["frozendict"]
cli = ["typer>=0.27", "requests-cache>=1.3"]
[project.scripts]
pyld = "pyld.cli.entry:main"
[project.urls]
Homepage = "https://github.com/digitalbazaar/pyld"
Documentation = "https://digitalbazaar.github.io/pyld/"
Repository = "https://github.com/digitalbazaar/pyld"
Changelog = "https://github.com/digitalbazaar/pyld/blob/master/CHANGELOG.md"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
]
docs = [
"aiohttp",
"mike>=2.1",
"mkdocs-awesome-pages-plugin==2.10.1",
"mkdocs-macros-plugin==1.5.0",
"mkdocs-material==9.7.7",
"mkdocs-typer2[mkdocs,termynal]==0.4.1",
"mkdocstrings[python]>=0.30",
"requests",
"requests-cache>=1.3",
"typing-extensions",
]
lint = ["ruff"]
test = [
"aiohttp",
"pytest",
"pytest-cov",
"requests",
"requests-cache>=1.3",
"typer>=0.27",
"typing-extensions",
]
[tool.setuptools]
package-dir = { "" = "lib" }
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "pyld.__about__.__version__" }
[tool.setuptools.packages.find]
where = ["lib"]
include = ["c14n*", "pyld*"]
[tool.setuptools.package-data]
"pyld.documentloader.frozen" = ["bundled/*.jsonld"]
[tool.ruff]
# Target Python version
target-version = "py310"
# Line length (matching rdflib's flake8 config)
line-length = 88
# Include and exclude patterns
include = ["*.py"]
exclude = [
".git",
"__pycache__",
".venv",
"venv",
"build",
"dist",
"*.egg-info",
]
[tool.ruff.lint]
# Enable common rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
# Ignore specific rules if needed
ignore = [
"E501", # line too long (handled by formatter, matches rdflib's flake8)
"F821", # undefined name (matches rdflib's flake8 W806 ignore)
"Q000", # quote style (preserved by formatter)
"Q001", # quote style (preserved by formatter)
"Q002", # quote style (preserved by formatter)
"Q003", # quote style (preserved by formatter)
]
[tool.ruff.format]
# Preserve existing quote styles (don't enforce single or double quotes)
quote-style = "preserve"
# Indent with spaces
indent-style = "space"
# Use 4 spaces for indentation
skip-magic-trailing-comma = false
# Line ending style
line-ending = "auto"
[tool.ruff.lint.isort]
# Import sorting configuration
known-first-party = ["pyld", "c14n"]