Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = ["flit_core >=3.11,<5"]
3 build-backend = "flit_core.buildapi"
4
5 [project]
6 name = "idna"
7 description = "Internationalized Domain Names in Applications (IDNA)"
8 readme = "README.md"
9 license = "BSD-3-Clause"
10 license-files = ["LICENSE.md"]
11 authors = [
12 {name = "Kim Davies", email = "[email protected]"}
13 ]
14 classifiers = [
15 "Development Status :: 5 - Production/Stable",
16 "Intended Audience :: Developers",
17 "Intended Audience :: System Administrators",
18 "Operating System :: OS Independent",
19 "Programming Language :: Python",
20 "Programming Language :: Python :: 3",
21 "Programming Language :: Python :: 3 :: Only",
22 "Programming Language :: Python :: 3.9",
23 "Programming Language :: Python :: 3.10",
24 "Programming Language :: Python :: 3.11",
25 "Programming Language :: Python :: 3.12",
26 "Programming Language :: Python :: 3.13",
27 "Programming Language :: Python :: 3.14",
28 "Programming Language :: Python :: Implementation :: CPython",
29 "Programming Language :: Python :: Implementation :: PyPy",
30 "Topic :: Internet :: Name Service (DNS)",
31 "Topic :: Software Development :: Libraries :: Python Modules",
32 "Topic :: Utilities",
33 ]
34 requires-python = ">=3.9"
35 dynamic = ["version"]
36
37 [project.urls]
38 "Source" = "https://github.com/kjd/idna"
39 "Changelog" = "https://github.com/kjd/idna/blob/master/HISTORY.md"
40 "Issue tracker" = "https://github.com/kjd/idna/issues"
41
42 [project.scripts]
43 idna = "idna.cli:main"
44
45 [tool.flit.sdist]
46 exclude = [".gitignore", ".github/"]
47 include = ["tests", "tools", "HISTORY.md"]
48
49 [project.optional-dependencies]
50 all = [
51 "ruff >= 0.16.0",
52 "mypy >= 1.11.2",
53 "ty >= 0.0.37",
54 "pytest >= 8.3.2",
55 "hypothesis >= 6.141.1",
56 "coverage >= 7.10.0",
57 ]
58
59 [tool.coverage.run]
60 source = ["idna"]
61 [tool.coverage.report]
62 show_missing = true
63 fail_under = 95
64
65 [tool.ruff]
66 line-length = 127
67 [tool.ruff.lint]
68 extend-select = [
69 # pycodestyle import/statement/runtime errors; these were part of ruff's
70 # default rule set before 0.16 and are kept explicitly here.
71 "E4",
72 "E7",
73 "E9",
74 "I", # isort
75 "B", # flake8-bugbear
76 "SIM", # flake8-simplify
77 "UP", # pyupgrade
78 "PERF", # perflint
79 "PIE", # flake8-pie
80 "RET", # flake8-return
81 "RUF", # ruff-specific
82 "PTH", # flake8-use-pathlib
83 "TC", # flake8-type-checking
84 "FURB", # refurb
85 "C4", # flake8-comprehensions
86 ]
87 ignore = [
88 # An IDN library legitimately handles confusable / ambiguous Unicode;
89 # flagging it everywhere produces tens of thousands of false positives.
90 "RUF001", # ambiguous-unicode-character-string
91 "RUF002", # ambiguous-unicode-character-docstring
92 "RUF003", # ambiguous-unicode-character-comment
93 # `__all__` lists __version__ first by convention; otherwise sorted.
94 "RUF022", # unsorted-dunder-all
95 ]