-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (83 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
94 lines (83 loc) · 2.33 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
[build-system]
requires = [
'setuptools>=61',
'wheel',
'pybind11>=2.4',
]
build-backend = 'setuptools.build_meta'
[project]
name = "ratapi"
version = "0.0.0.dev12"
description = "Python extension for the Reflectivity Analysis Toolbox (RAT)"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"matplotlib>=3.8.3",
"numpy>=1.20",
"prettytable>=3.9.0",
"pydantic>=2.7.2",
"scipy>=1.13.1",
"strenum>=0.4.15 ; python_full_version < '3.11'",
"tqdm>=4.66.5",
]
[project.urls]
Documentation = "https://rascalsoftware.github.io/RAT/"
Repository = "https://github.com/RascalSoftware/python-RAT"
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"ruff>=0.4.10"
]
orso = [
"orsopy>=1.2.1",
"pint>=0.24.4"
]
matlab_latest = ["matlabengine"]
matlab_2025b = ["matlabengine == 25.2.*"]
matlab_2025a = ["matlabengine == 25.1.2"]
matlab_2024b = ["matlabengine == 24.2.2"]
matlab_2024a = ["matlabengine == 24.1.4"]
matlab_2023b = ["matlabengine == 23.2.3"]
matlab_2023a = ["matlabengine == 9.14.3"]
[tool.uv]
conflicts = [
[
{ extra = "matlab_latest" },
{ extra = "matlab_2025b" },
{ extra = "matlab_2025a" },
{ extra = "matlab_2024b" },
{ extra = "matlab_2024a" },
{ extra = "matlab_2023b" },
{ extra = "matlab_2023a" },
],
]
[tool.ruff]
line-length = 120
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
select = ["E", # pycodestyle errors
"F", # pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"D"] # pydocstyle
ignore = ["SIM103", # needless bool
"SIM108", # if-else block instead of ternary operator
"D105", # undocumented __init__
"D107", # undocumented magic method
"D203", # blank line before class docstring
"D213", # multi line summary should start at second line
"UP038"] # non pep604 isinstance - to be removed
# ignore docstring lints in the tests and install script
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"setup.py" = ["D"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-first-party = ["ratapi.rat_core"]