-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (79 loc) · 1.95 KB
/
pyproject.toml
File metadata and controls
86 lines (79 loc) · 1.95 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "SasModelsExplorer"
version = "0.1"
description = "A PyQt-based interactive application for exploring scattering models using sasmodels library."
readme = "readme.md"
requires-python = ">=3.12"
dependencies = [
"PyQt6",
"sasmodels",
"mcsas3 @ git+https://github.com/BAMresearch/McSAS3.git@in_depth_upgrades",
"numpy",
"matplotlib",
"pint",
"PyYAML",
"pandas",
"h5py",
"scipy",
"modacor",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.scripts]
ModelExplorer = "ModelExplorer.__main__:main"
SME = "ModelExplorer.__main__:main"
modelexplorer = "ModelExplorer.__main__:main"
SasModelsExplorer = "ModelExplorer.__main__:main"
[project.optional-dependencies]
dev = [
"pytest",
"pre-commit",
"ruff",
"mypy",
"tox",
]
gui-interop = [
"mcsas3gui",
]
standalone = [
"pyinstaller>=6.0",
]
[tool.ruff]
line-length = 120
target-version = "py312"
lint.select = ["E", "F", "W", "B", "C90", "I"]
lint.ignore = ["E203", "E266", "E501", "F403", "F401", "F405", "F821"]
lint.mccabe.max-complexity = 18
[tool.ruff.format]
[tool.mypy]
python_version = "3.12"
files = [
"ModelExplorer/services",
"ModelExplorer/types.py",
"ModelExplorer/sasmodels_adapter.py",
"ModelExplorer/export_panel.py",
"ModelExplorer/fitting_panel.py",
"ModelExplorer/parameter_panel.py",
"ModelExplorer/data_loading_panel.py",
"ModelExplorer/modelbrowser.py",
"ModelExplorer/yaml_editor_widget.py",
"ModelExplorer/modelexplorer.py",
"ModelExplorer/utils",
]
exclude = "(^dist/|^build/)"
ignore_missing_imports = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_return_any = true
warn_unused_configs = true
no_implicit_optional = true
disable_error_code = ["import-untyped"]
pretty = true
[tool.setuptools.packages.find]
include = ["ModelExplorer*"]