-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (88 loc) · 2.88 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (88 loc) · 2.88 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
[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.16.0",
"mypy >= 1.11.2",
"ty >= 0.0.37",
"pytest >= 8.3.2",
"hypothesis >= 6.141.1",
"coverage >= 7.10.0",
]
[tool.coverage.run]
source = ["idna"]
[tool.coverage.report]
show_missing = true
fail_under = 95
[tool.ruff]
line-length = 127
[tool.ruff.lint]
extend-select = [
# pycodestyle import/statement/runtime errors; these were part of ruff's
# default rule set before 0.16 and are kept explicitly here.
"E4",
"E7",
"E9",
"I", # isort
"B", # flake8-bugbear
"SIM", # flake8-simplify
"UP", # pyupgrade
"PERF", # perflint
"PIE", # flake8-pie
"RET", # flake8-return
"RUF", # ruff-specific
"PTH", # flake8-use-pathlib
"TC", # flake8-type-checking
"FURB", # refurb
"C4", # flake8-comprehensions
]
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
]