-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (108 loc) · 3.21 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (108 loc) · 3.21 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["flit-core>=3.11"]
build-backend = "flit_core.buildapi"
[project]
name = "pyproject-metadata"
dynamic = ["version"]
description = "PEP 621 metadata parsing"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Filipe Laíns", email = "lains@riseup.net" },
]
classifiers = [
"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 :: 3.15",
]
dependencies = [
"packaging>=23.2",
]
[project.urls]
changelog = "https://pep621.readthedocs.io/en/stable/changelog.html"
documentation = "https://pep621.readthedocs.io/en/stable/"
homepage = "https://github.com/pypa/pyproject-metadata"
[dependency-groups]
docs = [
"furo>=2023.9.10",
"sphinx-autodoc-typehints>=1.10.0",
"sphinx>=7.0",
"sphinx-autodoc-typehints",
"myst-parser",
]
test = [
"pytest-cov>=4",
"pytest>=7.4; python_version>='3.12'",
"pytest>=7; python_version<'3.12'",
'tomli>=1.1;python_version<"3.11"',
'exceptiongroup>=1.0;python_version<"3.11"', # Optional
]
dev = [{include-group = "test"}]
[tool.flit.sdist]
include = ["LICENSE", "tests/**", "docs/**", ".gitignore"]
exclude = ["**/*.egg-info/**"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_level = "INFO"
testpaths = ["tests"]
[tool.mypy]
strict = true
warn_unreachable = false
python_version = "3.10"
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
files = ["pyproject_metadata", "tests", "noxfile.py"]
[tool.ruff]
show-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"S101", # Asserts are used by mypy and pytest
"PLR09", # Design related (too many X)
"PLR2004", # Magic value in comparison
"COM812", # Trailing commas inform the formatter
"CPY001", # No copyright notices in this project
"E501", # Not worried about long lines in strings
"D200", # Don't force single line docstring (for now)
"D205", # Some of our summaries are more than a line (for now)
]
flake8-builtins.ignorelist = ["copyright", "license"]
pydocstyle.convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"PTH123", # Path.open not needed for simple files
"D", # Tests don't need docs
"INP001", # Tests don't need an __init__
"FBT001", # Bools are fine in test fixtures/params
"SLF001", # Tests can access private members
"ERA001", # TODO: temporary
]
"docs/**" = [
"INP001", # Docs don't need an __init__
"ERA001", # Commented out code in conf.py
"D",
]
"noxfile.py" = ["D"]
[tool.ruff.format]
docstring-code-format = true
[tool.coverage]
run.branch = true
run.source_pkgs = ["pyproject_metadata"]
report.show_missing = true
report.exclude_also = [
"if typing.TYPE_CHECKING:",
]
[tool.uv]
exclude-newer = "7 days"
[tool.repo-review]
ignore = ["PC140"]