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
|
[build-system]
requires = ["maturin<2.0.0"]
build-backend = "maturin"
[project]
name = "zxcvbn-rs-py"
authors = [
{ name = "François Voron", email = "contact@fief.dev" }
]
description = "Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn"
readme = "README.md"
requires-python = ">=3.9,<3.14"
dynamic = ["version"]
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Security",
]
[project.urls]
Documentation = "https://fief-dev.github.io/zxcvbn-rs-py/"
Source = "https://github.com/fief-dev/zxcvbn-rs-py"
[tool.maturin]
features = ["pyo3/extension-module"]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
extend-select = ["I", "TRY", "UP"]
[tool.hatch]
[tool.hatch.envs.default]
installer = "uv"
python = "3.9"
dependencies = [
"maturin",
"mkdocs-material",
"mkdocstrings[python]>=0.18",
"black",
"mypy",
"ruff",
"pip",
"pytest",
]
[tool.hatch.envs.default.scripts]
lint = [
"cargo fmt",
"ruff format .",
"ruff check --fix .",
]
lint-check = [
"ruff format --check .",
"ruff check .",
]
docs-serve = "mkdocs serve"
docs-build = "mkdocs build"
test = "pytest"
|