| 1 |
[build-system] |
| 2 |
build-backend = "flit_core.buildapi" |
| 3 |
requires = [ |
| 4 |
"flit_core<4,>=3.11", |
| 5 |
] |
| 6 |
|
| 7 |
[project] |
| 8 |
name = "installer" |
| 9 |
readme = "README.md" |
| 10 |
authors = [ |
| 11 |
{ name = "Pradyun Gedam", email = "[email protected]" }, |
| 12 |
] |
| 13 |
requires-python = ">=3.10" |
| 14 |
license = "MIT" |
| 15 |
classifiers = [ |
| 16 |
"Programming Language :: Python :: 3 :: Only", |
| 17 |
"Programming Language :: Python :: 3.10", |
| 18 |
"Programming Language :: Python :: 3.11", |
| 19 |
"Programming Language :: Python :: 3.12", |
| 20 |
"Programming Language :: Python :: 3.13", |
| 21 |
"Programming Language :: Python :: 3.14", |
| 22 |
] |
| 23 |
dynamic = [ |
| 24 |
"description", |
| 25 |
"version", |
| 26 |
] |
| 27 |
[project.urls] |
| 28 |
"GitHub" = "https://github.com/pypa/installer" |
| 29 |
|
| 30 |
[tool.flit.sdist] |
| 31 |
include = [ |
| 32 |
"docs/", |
| 33 |
"tests/", |
| 34 |
] |
| 35 |
|
| 36 |
[tool.ruff] |
| 37 |
fix = true |
| 38 |
extend-exclude = [ |
| 39 |
"noxfile.py", |
| 40 |
"docs/*", |
| 41 |
] |
| 42 |
|
| 43 |
[tool.ruff.lint] |
| 44 |
extend-select = [ |
| 45 |
"ERA", |
| 46 |
"B", |
| 47 |
"C4", |
| 48 |
"ISC", |
| 49 |
"PTH", |
| 50 |
"PIE", |
| 51 |
"T20", |
| 52 |
"SIM", |
| 53 |
"TID", |
| 54 |
"TC", |
| 55 |
"FLY", |
| 56 |
"I", |
| 57 |
"N", |
| 58 |
"W", |
| 59 |
"D", |
| 60 |
"PGH", |
| 61 |
"UP", |
| 62 |
"RUF", |
| 63 |
] |
| 64 |
ignore = [ |
| 65 |
"D105", |
| 66 |
"D203", |
| 67 |
"D213", |
| 68 |
|
| 69 |
"W191", |
| 70 |
"E111", |
| 71 |
"E114", |
| 72 |
"E117", |
| 73 |
"E501", |
| 74 |
"N818", |
| 75 |
] |
| 76 |
|
| 77 |
[tool.ruff.lint.per-file-ignores] |
| 78 |
"tests/*" = ["D"] |
| 79 |
"tools/*" = ["D", "T20"] |
| 80 |
|
| 81 |
[tool.ruff.lint.isort] |
| 82 |
known-first-party = ["src"] |
| 83 |
|
| 84 |
[tool.coverage.report] |
| 85 |
exclude_lines = [ |
| 86 |
"pragma: no cover", |
| 87 |
"def __repr__", |
| 88 |
"if TYPE_CHECKING:", |
| 89 |
] |
| 90 |
|
| 91 |
[tool.mypy] |
| 92 |
files = "src,tools" |
| 93 |
strict = true |
| 94 |
warn_unreachable = true |
| 95 |
enable_error_code = [ |
| 96 |
"ignore-without-code", |
| 97 |
"redundant-expr", |
| 98 |
"truthy-bool", |
| 99 |
] |