|
[build-system] |
|
requires = ["maturin>=1.2,<2.0"] |
|
build-backend = "maturin" |
|
|
|
[project] |
|
name = "rpds-py" |
|
description = "Python bindings to Rust's persistent data structures (rpds)" |
|
requires-python = ">=3.8" |
|
readme = "README.rst" |
|
license = {text = "MIT"} |
|
keywords = ["data structures", "rust", "persistent"] |
|
authors = [ |
|
{ name = "Julian Berman", email = "Julian+rpds@GrayVines.com" }, |
|
] |
|
classifiers = [ |
|
"Development Status :: 3 - Alpha", |
|
"Intended Audience :: Developers", |
|
"License :: OSI Approved :: MIT License", |
|
"Operating System :: OS Independent", |
|
"Programming Language :: Rust", |
|
"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", |
|
"Programming Language :: Python :: 3.13", |
|
"Programming Language :: Python :: 3", |
|
"Programming Language :: Python :: Implementation :: CPython", |
|
"Programming Language :: Python :: Implementation :: PyPy", |
|
] |
|
dynamic = ["version"] |
|
|
|
[project.urls] |
|
Documentation = "https://rpds.readthedocs.io/" |
|
Homepage = "https://github.com/crate-py/rpds" |
|
Issues = "https://github.com/crate-py/rpds/issues/" |
|
Funding = "https://github.com/sponsors/Julian" |
|
Tidelift = "https://tidelift.com/subscription/pkg/pypi-rpds-py?utm_source=pypi-rpds-py&utm_medium=referral&utm_campaign=pypi-link" |
|
Source = "https://github.com/crate-py/rpds" |
|
|
|
[tool.black] |
|
line-length = 79 |
|
|
|
[tool.coverage.html] |
|
show_contexts = true |
|
skip_covered = false |
|
|
|
[tool.coverage.run] |
|
branch = true |
|
dynamic_context = "test_function" |
|
|
|
[tool.coverage.report] |
|
exclude_also = [ |
|
"if TYPE_CHECKING:", |
|
"\\s*\\.\\.\\.\\s*", |
|
] |
|
fail_under = 100 |
|
show_missing = true |
|
skip_covered = true |
|
|
|
[tool.doc8] |
|
ignore = [ |
|
"D000", |
|
"D001", |
|
] |
|
|
|
[tool.maturin] |
|
features = ["pyo3/extension-module"] |
|
|
|
[tool.pyright] |
|
reportUnnecessaryTypeIgnoreComment = true |
|
strict = ["**/*"] |
|
exclude = [ |
|
"**/tests/__init__.py", |
|
"**/tests/test_*.py", |
|
] |
|
|
|
[tool.ruff] |
|
line-length = 79 |
|
|
|
[tool.ruff.lint] |
|
select = ["ALL"] |
|
ignore = [ |
|
"A001", |
|
"A002", |
|
"A003", |
|
"ARG", |
|
"ANN", |
|
"B006", |
|
"B008", |
|
"B904", |
|
"B905", |
|
"C408", |
|
"C901", |
|
"D105", |
|
"D107", |
|
"D200", |
|
"D203", |
|
"D212", |
|
"D400", |
|
"D401", |
|
"D406", |
|
"D407", |
|
"D412", |
|
"EM101", |
|
"EM102", |
|
"FBT", |
|
"FIX", |
|
"N", |
|
"PLR0912", |
|
"PLR0913", |
|
"PLR0915", |
|
"PLW2901", |
|
"PT006", |
|
"PYI025", |
|
"RET502", |
|
"RET503", |
|
"RET505", |
|
"RET506", |
|
"RSE102", |
|
"SIM300", |
|
"SLF001", |
|
"TD", |
|
"UP007", |
|
] |
|
|
|
[tool.ruff.lint.flake8-pytest-style] |
|
mark-parentheses = false |
|
|
|
[tool.ruff.lint.flake8-quotes] |
|
docstring-quotes = "double" |
|
|
|
[tool.ruff.lint.isort] |
|
combine-as-imports = true |
|
from-first = true |
|
known-first-party = ["rpds"] |
|
|
|
[tool.ruff.lint.per-file-ignores] |
|
"noxfile.py" = ["ANN", "D100", "S101", "T201"] |
|
"docs/*" = ["ANN", "D", "INP001"] |
|
"tests/*" = ["ANN", "B018", "D", "PLR", "RUF012", "S", "SIM", "TRY"] |
|
|