-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
96 lines (84 loc) · 2.67 KB
/
pyproject.toml
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
96
[project]
name = "pip-plugin-pep740"
dynamic = ["version"]
description = "A pip plugin that verifies PEP 740 attestations before package installation"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Trail of Bits", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"packaging",
"pypi-attestations>=0.0.13",
"rfc3986",
"sigstore~=3.3",
]
requires-python = ">=3.9"
[tool.setuptools.dynamic]
version = { attr = "pip_plugin_pep740.__version__" }
[project.entry-points."pip.plugins"]
pip-plugin-pep740 = "pip_plugin_pep740"
[project.optional-dependencies]
doc = ["pdoc"]
test = ["pytest", "pytest-cov", "pretend", "coverage[toml]", "requests-mock"]
lint = [
# NOTE: ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
"ruff ~= 0.7.0",
"mypy >= 1.0",
"types-html5lib",
"types-requests",
"types-toml",
"interrogate",
]
dev = ["pip-plugin-pep740[doc,test,lint]", "twine", "build"]
[project.urls]
Homepage = "https://pypi.org/project/pip-plugin-pep740"
Documentation = "https://facutuesca.github.io/pip-plugin-pep740/"
Issues = "https://github.com/facutuesca/pip-plugin-pep740/issues"
Source = "https://github.com/facutuesca/pip-plugin-pep740"
[tool.coverage.run]
# don't attempt code coverage for the CLI entrypoints
omit = ["src/pip_plugin_pep740/_cli.py"]
[tool.mypy]
mypy_path = "src"
packages = "pip_plugin_pep740"
allow_redefinition = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
sqlite_cache = true
strict_equality = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff]
line-length = 100
include = ["src/**/*.py", "test/**/*.py"]
[tool.ruff.lint]
select = ["ALL"]
# D203 and D213 are incompatible with D211 and D212 respectively.
# COM812 and ISC001 can cause conflicts when using ruff as a formatter.
# See https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules.
ignore = ["D203", "D213", "COM812", "ISC001"]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = [
"D", # no docstrings in tests
"S101", # asserts are expected in tests
]
[tool.interrogate]
# don't enforce documentation coverage for packaging, testing, the virtual
# environment, or the CLI (which is documented separately).
exclude = ["env", "test", "src/pip_plugin_pep740/_cli.py"]
ignore-semiprivate = true
fail-under = 100