Skip to content

Commit 2bb91a6

Browse files
committed
Reformat pyproject.toml
1 parent d8ba149 commit 2bb91a6

File tree

1 file changed

+31
-62
lines changed

1 file changed

+31
-62
lines changed

pyproject.toml

Lines changed: 31 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,33 @@
22
description = "A Python management solution for C++ dependencies"
33
name = "cppython"
44

5-
license = {text = "MIT"}
5+
license = { text = "MIT" }
66

7-
authors = [
8-
{name = "Synodic Software", email = "contact@synodic.software"},
9-
]
7+
authors = [{ name = "Synodic Software", email = "contact@synodic.software" }]
108
readme = "README.md"
119

1210
dynamic = ["version"]
1311

1412
requires-python = ">=3.13"
1513

1614
dependencies = [
17-
"typer>=0.15.2",
18-
"pydantic>=2.11.3",
19-
"packaging>=24.2",
20-
"requests>=2.32.3",
21-
"types-requests>=2.32.0.20250328",
15+
"typer>=0.15.2",
16+
"pydantic>=2.11.3",
17+
"packaging>=24.2",
18+
"requests>=2.32.3",
19+
"types-requests>=2.32.0.20250328",
2220
]
2321

2422
[project.optional-dependencies]
25-
pytest = [
26-
"pytest>=8.3.5",
27-
"pytest-mock>=3.14.0",
28-
]
23+
pytest = ["pytest>=8.3.5", "pytest-mock>=3.14.0"]
2924

30-
git = [
31-
"dulwich>=0.22.8",
32-
]
25+
git = ["dulwich>=0.22.8"]
3326

34-
pdm = [
35-
"pdm>=2.23.1",
36-
]
27+
pdm = ["pdm>=2.23.1"]
3728

38-
cmake = [
39-
"cmake>=4.0.0",
40-
]
29+
cmake = ["cmake>=4.0.0"]
4130

42-
conan = [
43-
"conan>=2.15.0",
44-
]
31+
conan = ["conan>=2.15.0"]
4532

4633
[project.urls]
4734
homepage = "https://github.com/Synodic-Software/CPPython"
@@ -64,24 +51,15 @@ cppython = "cppython.plugins.pdm.plugin:CPPythonPlugin"
6451
cppython = "cppython.test.pytest.fixtures"
6552

6653
[dependency-groups]
67-
lint = [
68-
"ruff>=0.11.4",
69-
"mypy>=1.15.0",
70-
]
71-
test = [
72-
"pytest>=8.3.5",
73-
"pytest-cov>=6.1.1",
74-
"pytest-mock>=3.14.0",
75-
]
54+
lint = ["ruff>=0.11.4", "mypy>=1.15.0"]
55+
test = ["pytest>=8.3.5", "pytest-cov>=6.1.1", "pytest-mock>=3.14.0"]
7656

7757
[project.scripts]
7858
cppython = "cppython.console.entry:app"
7959

8060
[tool.pytest.ini_options]
8161
log_cli = true
82-
testpaths = [
83-
"tests",
84-
]
62+
testpaths = ["tests"]
8563

8664
[tool.mypy]
8765
exclude = "__pypackages__"
@@ -93,24 +71,17 @@ line-length = 120
9371
preview = true
9472

9573
[tool.ruff.lint]
96-
ignore = [
97-
"D206",
98-
"D300",
99-
"D415",
100-
"E111",
101-
"E114",
102-
"E117",
103-
]
74+
ignore = ["D206", "D300", "D415", "E111", "E114", "E117"]
10475
select = [
105-
"D", # pydocstyle
106-
"F", # Pyflakes
107-
"I", # isort
108-
"PL", # pylint
109-
"UP", # pyupgrade
110-
"E", # pycodestyle
111-
"B", # flake8-bugbear
112-
"SIM", # flake8-simplify
113-
"PT", # flake8-pytest-style
76+
"D", # pydocstyle
77+
"F", # Pyflakes
78+
"I", # isort
79+
"PL", # pylint
80+
"UP", # pyupgrade
81+
"E", # pycodestyle
82+
"B", # flake8-bugbear
83+
"SIM", # flake8-simplify
84+
"PT", # flake8-pytest-style
11485
]
11586

11687
[tool.ruff.lint.pydocstyle]
@@ -125,9 +96,7 @@ quote-style = "single"
12596
skip_empty = true
12697

12798
[tool.pdm]
128-
plugins = [
129-
"-e file:///${PROJECT_ROOT}",
130-
]
99+
plugins = ["-e file:///${PROJECT_ROOT}"]
131100

132101
[tool.pdm.options]
133102
update = ["--update-all", "--unconstrained"]
@@ -136,11 +105,11 @@ update = ["--update-all", "--unconstrained"]
136105
source = "scm"
137106

138107
[tool.pdm.scripts]
139-
analyze = {shell = "ruff check cppython tests"}
140-
format = {shell = "ruff format"}
141-
lint = {composite = ["analyze", "format", "type-check"]}
142-
test = {shell = "pytest --cov=cppython --verbose tests"}
143-
type-check = {shell = "mypy ."}
108+
analyze = { shell = "ruff check cppython tests" }
109+
format = { shell = "ruff format" }
110+
lint = { composite = ["analyze", "format", "type-check"] }
111+
test = { shell = "pytest --cov=cppython --verbose tests" }
112+
type-check = { shell = "mypy ." }
144113

145114
[build-system]
146115
build-backend = "pdm.backend"

0 commit comments

Comments
 (0)