2
2
description = " A Python management solution for C++ dependencies"
3
3
name = " cppython"
4
4
5
- license = {text = " MIT" }
5
+ license = { text = " MIT" }
6
6
7
- authors = [
8
- {
name =
" Synodic Software" ,
email =
" [email protected] " },
9
- ]
7
+ authors = [{
name =
" Synodic Software" ,
email =
" [email protected] " }]
10
8
readme = " README.md"
11
9
12
10
dynamic = [" version" ]
13
11
14
12
requires-python = " >=3.13"
15
13
16
14
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" ,
22
20
]
23
21
24
22
[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" ]
29
24
30
- git = [
31
- " dulwich>=0.22.8" ,
32
- ]
25
+ git = [" dulwich>=0.22.8" ]
33
26
34
- pdm = [
35
- " pdm>=2.23.1" ,
36
- ]
27
+ pdm = [" pdm>=2.23.1" ]
37
28
38
- cmake = [
39
- " cmake>=4.0.0" ,
40
- ]
29
+ cmake = [" cmake>=4.0.0" ]
41
30
42
- conan = [
43
- " conan>=2.15.0" ,
44
- ]
31
+ conan = [" conan>=2.15.0" ]
45
32
46
33
[project .urls ]
47
34
homepage = " https://github.com/Synodic-Software/CPPython"
@@ -64,24 +51,16 @@ cppython = "cppython.plugins.pdm.plugin:CPPythonPlugin"
64
51
cppython = " cppython.test.pytest.fixtures"
65
52
66
53
[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" ]
76
56
77
57
[project .scripts ]
78
58
cppython = " cppython.console.entry:app"
79
59
80
60
[tool .pytest .ini_options ]
81
61
log_cli = true
82
- testpaths = [
83
- " tests" ,
84
- ]
62
+ testpaths = [" tests" ]
63
+ addopts = [" --color=yes" ]
85
64
86
65
[tool .mypy ]
87
66
exclude = " __pypackages__"
@@ -93,24 +72,17 @@ line-length = 120
93
72
preview = true
94
73
95
74
[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" ]
104
76
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
114
86
]
115
87
116
88
[tool .ruff .lint .pydocstyle ]
@@ -125,9 +97,7 @@ quote-style = "single"
125
97
skip_empty = true
126
98
127
99
[tool .pdm ]
128
- plugins = [
129
- " -e file:///${PROJECT_ROOT}" ,
130
- ]
100
+ plugins = [" -e file:///${PROJECT_ROOT}" ]
131
101
132
102
[tool .pdm .options ]
133
103
update = [" --update-all" , " --unconstrained" ]
@@ -136,11 +106,11 @@ update = ["--update-all", "--unconstrained"]
136
106
source = " scm"
137
107
138
108
[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 ." }
144
114
145
115
[build-system ]
146
116
build-backend = " pdm.backend"
0 commit comments