-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
58 lines (47 loc) · 1.61 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
[build-system]
build-backend = 'py_build_cmake.build'
requires = ['py-build-cmake~=0.1.8']
[project]
name = 'cminpack_numba'
version= '0.1.1'
description = 'A numba compatible wrapper of cminpack.'
readme = 'README.md'
license = {file = 'LICENSE'}
authors = [{name = 'Chris Ninham', email = 'christopher.ninham@creatis.insa-lyon.fr'},]
dependencies = ['numba', 'numpy'] # TODO(nin17): Add version of numba & numpy required
[project.optional-dependencies]
tests = ['pytest', 'pytest-benchmark', 'scipy', 'NumbaMinpack']
dev = ['ruff',]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ['ALL']
ignore = ['TD003']
[tool.ruff.extend-per-file-ignores]
'dpmpar.py' = ['ANN001', 'ANN202', 'ARG001']
'enorm.py' = ['ANN001', 'ANN202', 'ARG001']
'hybrd.py' = ['ANN001', 'ANN202', 'ARG001', 'ARG005', 'PLR0913']
'hybrj.py' = ['ANN001', 'ANN202', 'ARG001', 'ARG005', 'PLR0913']
'lmder.py' = ['ANN001', 'ANN202', 'ARG001', 'ARG005', 'PLR0913']
'lmdif.py' = ['ANN001', 'ANN202', 'ARG001', 'ARG005', 'PLR0913']
'lmstr.py' = ['ANN001', 'ANN202', 'ARG001', 'ARG005', 'PLR0913']
'utils.py' = ['ANN001', 'ANN202', 'ARG001', 'D103']
[tool.pyright]
reportInvalidTypeForm = false
[tool.py-build-cmake.module]
directory = '.'
[tool.py-build-cmake.sdist]
include = ['cminpack/CMakeLists.txt', 'cminpack/*']
[tool.py-build-cmake.cmake]
minimum_version = '3.17'
build_type = 'RelWithDebInfo'
source_path = 'cminpack'
build_args = ['-j']
[tool.py-build-cmake.cmake.options]
BUILD_SHARED_LIBS = 'ON'
USE_BLAS = 'OFF' # TODO(nin17): Add blas support
CMINPACK_LIB_INSTALL_DIR='cminpack_numba'
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]