-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (123 loc) · 3.23 KB
/
Copy pathpyproject.toml
File metadata and controls
129 lines (123 loc) · 3.23 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
126
127
128
129
[build-system]
build-backend = "build_backend"
requires = [
"maturin>=1.14.1",
]
backend-path = [ "." ]
[project]
name = "pyproject-fmt"
description = "Format your pyproject.toml file"
readme = { file = "README.rst", content-type = "text/x-rst" }
keywords = [
"format",
"pyproject",
]
license.file = "LICENSE.txt"
authors = [
{ name = "Bernat Gabor", email = "gaborjbernat@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Free Threading :: 1 - Unstable",
]
dynamic = [
"version",
]
dependencies = [
"toml-fmt-common",
]
urls."Bug Tracker" = "https://github.com/tox-dev/toml-fmt/issues"
urls."Source Code" = "https://github.com/tox-dev/toml-fmt/tree/main/pyproject-fmt"
urls.Changelog = "https://github.com/tox-dev/toml-fmt/blob/main/pyproject-fmt/CHANGELOG.md"
urls.Documentation = "https://pyproject-fmt.readthedocs.io/en/latest/"
scripts.pyproject-fmt = "pyproject_fmt.__main__:runner"
[dependency-groups]
dev = [
{ include-group = "fix" },
{ include-group = "test" },
{ include-group = "type" },
]
test = [
"covdefaults>=2.3",
"pytest>=9.1.1",
"pytest-cov>=7.1",
"pytest-mock>=3.15.1",
]
type = [
"mypy==2.3.1",
"types-cachetools>=7.0.0.20260713",
"types-chardet>=5.0.4.6",
{ include-group = "test" },
]
docs = [
"furo>=2025.12.19; python_version>='3.14'",
"sphinx>=9.1; python_version>='3.14'",
"sphinx-argparse-cli>=1.22.1; python_version>='3.14'",
"sphinx-autodoc-typehints>=3.13.2; python_version>='3.14'",
"sphinx-copybutton>=0.5.2; python_version>='3.14'",
"sphinx-design>=0.7; python_version>='3.14'",
"sphinx-inline-tabs>=2025.12.21.14; python_version>='3.14'",
"sphinx-llm>=1",
]
fix = [
"pre-commit-uv>=4.3",
]
pkg-meta = [
"check-wheel-contents>=0.6.3",
"twine>=7",
"uv>=0.12.5",
]
[tool.maturin]
module-name = "pyproject_fmt._lib"
bindings = "pyo3"
python-source = "src"
manifest-path = "Cargo.toml"
include = [
# ship the in-tree PEP 517 backend in the sdist so wheels can be built from the sdist
{ path = "build_backend.py", format = "sdist" },
{ path = "rust-toolchain.toml", format = "sdist" },
{ path = "docs/", format = "sdist" },
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "README.rst", format = "sdist" },
]
exclude = [
"**/*.pyc",
"**/*.pyo",
"**/__pycache__/**",
]
strip = true
[tool.pyproject-fmt]
max_supported_python = "3.15"
[tool.mypy]
strict = true
show_error_codes = true
[tool.coverage]
run.omit = [
"*/_vendor/*", # vendored toml_fmt_common is covered by its own test suite
]
run.parallel = true
run.plugins = [
"covdefaults",
]
paths.source = [
"src",
".tox/*/.venv/lib/*/site-packages",
".tox\\*\\.venv\\Lib\\site-packages",
".tox/*/lib/*/site-packages",
".tox\\*\\Lib\\site-packages",
"**/src",
"**\\src",
]
report.fail_under = 100
html.show_contexts = true
html.skip_covered = false