Skip to content

Commit 7cd4064

Browse files
committed
Update Chore + Config
1 parent 2e81928 commit 7cd4064

File tree

5 files changed

+69
-106
lines changed

5 files changed

+69
-106
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4

examples/conan_cmake/simple/pyproject.toml

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,19 @@ version = "1.0.0"
55

66
license = {text = "MIT"}
77

8-
authors = [
9-
{name = "Synodic Software", email = "[email protected]"},
10-
]
8+
authors = [{name = "Synodic Software", email = "[email protected]"}]
119

1210
requires-python = ">=3.13"
1311

14-
dependencies = [
15-
"cppython>=0.1.0",
16-
]
12+
dependencies = ["cppython[conan, cmake]>=0.1.0"]
1713

1814
[tool.cppython]
1915
generator-name = "cmake"
2016
provider-name = "conan"
2117

2218
install-path = "install"
2319

24-
dependencies = [
25-
"fmt>=11.0.1",
26-
]
20+
dependencies = ["fmt>=11.0.1"]
2721

2822
[tool.cppython.generator]
2923

examples/vcpkg_cmake/simple/pyproject.toml

+3-9
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,19 @@ version = "1.0.0"
55

66
license = {text = "MIT"}
77

8-
authors = [
9-
{name = "Synodic Software", email = "[email protected]"},
10-
]
8+
authors = [{name = "Synodic Software", email = "[email protected]"}]
119

1210
requires-python = ">=3.13"
1311

14-
dependencies = [
15-
"cppython>=0.1.0",
16-
]
12+
dependencies = ["cppython[vcpkg, cmake]>=0.1.0"]
1713

1814
[tool.cppython]
1915
generator-name = "cmake"
2016
provider-name = "vcpkg"
2117

2218
install-path = "install"
2319

24-
dependencies = [
25-
"fmt>=11.0.2",
26-
]
20+
dependencies = ["fmt>=11.0.2"]
2721

2822
[tool.cppython.generator]
2923

pdm.lock

+26-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+32-62
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 = "[email protected]"},
9-
]
7+
authors = [{ name = "Synodic Software", email = "[email protected]" }]
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,16 @@ 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.5", "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"]
63+
addopts = ["--color=yes"]
8564

8665
[tool.mypy]
8766
exclude = "__pypackages__"
@@ -93,24 +72,17 @@ line-length = 120
9372
preview = true
9473

9574
[tool.ruff.lint]
96-
ignore = [
97-
"D206",
98-
"D300",
99-
"D415",
100-
"E111",
101-
"E114",
102-
"E117",
103-
]
75+
ignore = ["D206", "D300", "D415", "E111", "E114", "E117"]
10476
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
77+
"D", # pydocstyle
78+
"F", # Pyflakes
79+
"I", # isort
80+
"PL", # pylint
81+
"UP", # pyupgrade
82+
"E", # pycodestyle
83+
"B", # flake8-bugbear
84+
"SIM", # flake8-simplify
85+
"PT", # flake8-pytest-style
11486
]
11587

11688
[tool.ruff.lint.pydocstyle]
@@ -125,9 +97,7 @@ quote-style = "single"
12597
skip_empty = true
12698

12799
[tool.pdm]
128-
plugins = [
129-
"-e file:///${PROJECT_ROOT}",
130-
]
100+
plugins = ["-e file:///${PROJECT_ROOT}"]
131101

132102
[tool.pdm.options]
133103
update = ["--update-all", "--unconstrained"]
@@ -136,11 +106,11 @@ update = ["--update-all", "--unconstrained"]
136106
source = "scm"
137107

138108
[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 ."}
109+
analyze = { shell = "ruff check cppython tests" }
110+
format = { shell = "ruff format" }
111+
lint = { composite = ["analyze", "format", "type-check"] }
112+
test = { shell = "pytest --cov=cppython --verbose tests" }
113+
type-check = { shell = "mypy ." }
144114

145115
[build-system]
146116
build-backend = "pdm.backend"

0 commit comments

Comments
 (0)