| [build-system] |
| requires = ["flit_core >=3.11,<5"] |
| build-backend = "flit_core.buildapi" |
| |
| [project] |
| name = "idna" |
| description = "Internationalized Domain Names in Applications (IDNA)" |
| readme = "README.md" |
| license = "BSD-3-Clause" |
| license-files = ["LICENSE.md"] |
| authors = [ |
| {name = "Kim Davies", email = "kim+pypi@gumleaf.org"} |
| ] |
| classifiers = [ |
| "Development Status :: 5 - Production/Stable", |
| "Intended Audience :: Developers", |
| "Intended Audience :: System Administrators", |
| "Operating System :: OS Independent", |
| "Programming Language :: Python", |
| "Programming Language :: Python :: 3", |
| "Programming Language :: Python :: 3 :: Only", |
| "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.14", |
| "Programming Language :: Python :: Implementation :: CPython", |
| "Programming Language :: Python :: Implementation :: PyPy", |
| "Topic :: Internet :: Name Service (DNS)", |
| "Topic :: Software Development :: Libraries :: Python Modules", |
| "Topic :: Utilities", |
| ] |
| requires-python = ">=3.9" |
| dynamic = ["version"] |
| |
| [project.urls] |
| "Source" = "https://github.com/kjd/idna" |
| "Changelog" = "https://github.com/kjd/idna/blob/master/HISTORY.md" |
| "Issue tracker" = "https://github.com/kjd/idna/issues" |
| |
| [project.scripts] |
| idna = "idna.cli:main" |
| |
| [tool.flit.sdist] |
| exclude = [".gitignore", ".github/"] |
| include = ["tests", "tools", "HISTORY.md"] |
| |
| [project.optional-dependencies] |
| all = [ |
| "ruff >= 0.6.2", |
| "mypy >= 1.11.2", |
| "pytest >= 8.3.2", |
| ] |
| |
| [tool.ruff] |
| line-length = 127 |
| [tool.ruff.lint] |
| extend-select = [ |
| "I", # isort |
| "B", # flake8-bugbear |
| "SIM", # flake8-simplify |
| "UP", # pyupgrade |
| "PERF", # perflint |
| "PIE", # flake8-pie |
| "RET", # flake8-return |
| "RUF", # ruff-specific |
| ] |
| ignore = [ |
| # An IDN library legitimately handles confusable / ambiguous Unicode; |
| # flagging it everywhere produces tens of thousands of false positives. |
| "RUF001", # ambiguous-unicode-character-string |
| "RUF002", # ambiguous-unicode-character-docstring |
| "RUF003", # ambiguous-unicode-character-comment |
| # `__all__` lists __version__ first by convention; otherwise sorted. |
| "RUF022", # unsorted-dunder-all |
| ] |