-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (169 loc) · 4.76 KB
/
Copy pathpyproject.toml
File metadata and controls
186 lines (169 loc) · 4.76 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[build-system]
requires = ["setuptools>=77.0.3", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "prik"
version = "0.1.1"
description = "Fortran-to-Python native extensions with editable .pyi contracts"
readme = "README.md"
authors = [
{ name = "Said Hadjout" , email = "saidaissa.hadjout@gmail.com"},
]
keywords = [
"fortran",
"f2py",
"interop",
"bindings",
"native-extension",
"cpython-extension",
"numpy",
"wrapper-generator",
"scientific-computing",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Fortran",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Code Generators",
]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
dependencies = [
"colorama>=0.4.6; platform_system == 'Windows'",
"filelock >= 3.12",
"numpy >= 2.1",
"immutabledict >= 4.0.0",
]
[project.optional-dependencies]
pretty = [
"rich>=13.7",
"rich-argparse>=1.4",
]
docs = [
"mkdocs==1.6.1",
"mkdocs-material==9.7.6",
"pyperf==2.10.0",
]
qa = [
"bandit[toml]==1.9.4",
"coverage[toml]>=7.10",
"hypothesis>=6.100",
"pytest>=8.0",
"pytest-randomly>=3.15",
"pyperf==2.10.0",
"radon[toml]==6.0.1",
"ruff==0.15.17",
"vulture==2.16",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["prik*"]
[tool.setuptools.package-data]
"prik.binding_support" = ["*.h", "LICENSE"]
[project.scripts]
prik = "prik.cli:main"
[project.urls]
Homepage = "https://pynumlab.github.io/prik/"
Documentation = "https://pynumlab.github.io/prik/"
Repository = "https://github.com/PyNumLab/prik"
Issues = "https://github.com/PyNumLab/prik/issues"
Changelog = "https://github.com/PyNumLab/prik/blob/main/CHANGELOG.md"
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-ra --strict-config --strict-markers"
markers = [
"benchmark: parked performance tests; enable when benchmark adoption resumes",
"fortran_end_to_end: compiled, imported, and called Fortran feature tests",
"fuzz: randomized parser robustness tests",
"property: Hypothesis property-based tests",
"real_library: dedicated BLAS/LAPACK native-source end-to-end tests",
"regression: tests that pin previously fixed bugs",
"slow: tests that are useful but too expensive for the default inner loop",
"toolchain_smoke: portable compiled Fortran end-to-end cases reused across compiler, OS, and architecture lanes",
]
xfail_strict = true
[tool.coverage.run]
source = ["prik"]
branch = true
parallel = true
relative_files = true
[tool.coverage.report]
show_missing = true
skip_covered = false
fail_under = 90
precision = 2
[tool.ruff]
target-version = "py310"
line-length = 120
force-exclude = true
extend-exclude = [
"tests/c/fixtures/pyi",
"tests/fortran/*/end_to_end/fixtures",
"tests/fortran/*/pipeline/fixtures",
"tests/fortran/pyi_contracts/*/end_to_end/fixtures",
"tests/fortran/semantic_pyi_format/pipeline/fixtures",
"prik.egg-info",
]
[tool.ruff.lint]
select = [
"E4", # import and syntax-related pycodestyle errors
"E7", # statement structure errors
"E9", # runtime syntax/name errors
"F", # Pyflakes: undefined names, unused imports, dead assignments
"B", # flake8-bugbear suspicious patterns
"C4", # comprehension mistakes
"UP", # safe Python-version modernizations
"SIM", # simplifiable code
"RET", # return-flow mistakes
"RUF", # Ruff-specific bug and maintenance rules
"C90", # McCabe complexity
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.isort]
known-first-party = ["prik"]
[tool.ruff.lint.mccabe]
max-complexity = 45
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.bandit]
exclude_dirs = ["tests", "docs", "prik.egg-info"]
[tool.vulture]
paths = ["prik", "tests"]
exclude = [
"tests/c/fixtures/pyi/",
"tests/fortran/*/end_to_end/fixtures/",
"tests/fortran/*/pipeline/fixtures/",
"tests/fortran/pyi_contracts/*/end_to_end/fixtures/",
"tests/fortran/semantic_pyi_format/pipeline/fixtures/",
"prik.egg-info/",
]
min_confidence = 80
sort_by_size = true
ignore_names = [
"pytest_*",
"test_*",
]
[tool.radon]
exclude = "tests/*,docs/*"
ignore = "__pycache__,.git,.pytest_cache,.ruff_cache"
cc_min = "C"
cc_max = "F"
show_complexity = true
average = true
total_average = true
mi_min = "B"