generated from kieran-ryan/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
145 lines (127 loc) · 2.76 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[build-system]
build-backend = "flit_core.buildapi"
requires = [
"flit_core >=2,<4",
]
[dependency-groups]
docs = [
"mkdocs-material==9.5.49",
"mkdocs-same-dir==0.1.3",
]
lint = [
"pre-commit==3.3.3",
]
test = [
"packaging==23.1",
"pyprojectsort",
"pytest-cov==4.1.0",
"pytest==7.4.0",
]
[project]
authors = [
{ name = "Kieran Ryan" },
]
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"natsort>=8.4.0,<9",
"tomli-w>=1.0.0",
"tomli>=2.0.1,<3",
]
description = "Formatter for pyproject.toml files"
dynamic = [
"version",
]
keywords = [
"formatter",
"pyproject",
]
name = "pyprojectsort"
readme = "README.md"
requires-python = ">=3.8"
[project.license]
file = "LICENSE"
[project.scripts]
pyprojectsort = "pyprojectsort.main:main"
[project.urls]
Changelog = "https://github.com/kieran-ryan/pyprojectsort/blob/main/CHANGELOG.md"
Documentation = "https://kieran-ryan.github.io/pyprojectsort"
Source = "https://github.com/kieran-ryan/pyprojectsort"
Tracker = "https://github.com/kieran-ryan/pyprojectsort/issues"
[tool.coverage.html]
directory = ".reports/coverage"
show_contexts = true
[tool.coverage.report]
exclude_lines = [
"if __name__ == \"__main__\":",
"if typing.TYPE_CHECKING:",
]
fail_under = 75.0
show_missing = true
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"*/venv/*",
]
[tool.coverage.xml]
output = ".reports/coverage.xml"
[tool.flit.module]
name = "pyprojectsort"
[tool.pytest.ini_options]
addopts = "--doctest-modules -rA --verbose --junitxml=.reports/junit.xml -o junit_family=legacy --cov-report=term --cov-report=html --cov-report=xml --cov=pyprojectsort"
testpaths = [
"pyprojectsort",
"tests",
]
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
ignore = [
"ANN",
"ARG",
"COM812",
"D203",
"D213",
"D406",
"D407",
"DTZ005",
"FIX002",
"G004",
"INP001",
"ISC001",
"S101",
"T201",
"TD003",
]
select = [
"ALL",
]
[tool.ruff.lint.isort]
required-imports = [
"from __future__ import annotations",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.uv]
default-groups = [
"docs",
"lint",
"test",
]
[tool.uv.sources.pyprojectsort]
workspace = true