-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
103 lines (83 loc) · 3.13 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
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
# Copyright 2023 - 2025, Helmholtz-Zentrum Hereon
# SPDX-License-Identifier: CC0-1.0
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pydidas"
authors = [{name = "Malte Storm"}]
description = "pydidas - the PYthon DIffraction Data Analysis Suite"
readme = "README.md"
requires-python = ">=3.11, <3.13"
license = {text = "GNU General Public License v3"}
keywords = ["X-ray diffraction", "XRD", "WAXS", "SAXS"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = ["version", "dependencies", "optional-dependencies"]
[project.urls]
homepage = "https://pydidas.hereon.de/"
documentation = "https://hereon-gems.github.io/pydidas"
repository = "https://github.com/hereon-GEMS/pydidas"
changelog = "https://github.com/hereon-GEMS/pydidas/blob/master/CHANGELOG.md"
[tool.setuptools.dynamic]
version = { attr = "pydidas.version.VERSION" }
dependencies = { file = ["requirements.txt"]}
optional-dependencies.dev = { file = ["requirements_dev.txt"]}
[tool.setuptools.packages.find]
where = ["src"]
[project.scripts]
pydidas-clear-settings = "pydidas_scripts.clear_local_settings:clear_local_settings"
pydidas-updater = "pydidas_scripts.pydidas_updater_script:run_update"
pydidas-documentation = "pydidas_scripts.open_documentation:open_documentation"
pydidas-remove-local-files = "pydidas_scripts.remove_local_files:run"
run-pydidas-workflow = "pydidas_scripts.run_pydidas_workflow:run_workflow"
remove-pydidas = "pydidas_scripts.remove_pydidas_from_system:remove_pydidas_from_system"
[project.gui-scripts]
pydidas-gui = "pydidas_scripts.pydidas_gui:open_gui"
[tool.coverage.run]
branch = true
[tool.coverage.report]
omit = ["tests/*", "pydidas/gui/*", "pydidas/widgets/*"]
[tool.coverage.html]
directory = "coverage_html_report"
[tool.isort]
profile = 'black'
extend_skip = ["__init__.py"]
lines_after_imports = 2
[tool.black]
line-length = 88
target-version = ['py311']
[tool.bandit]
skips = ["B311"]
[tool.ruff]
extend-exclude = ["docs/source/conf.py"]
show-fixes = true
line-length = 88
[tool.ruff.lint]
extend-select = ["I", "C90", "F401"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-local-folder = ["pydidas", "pydidas_qtcore"]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 12.
max-complexity = 12
[tool.ruff.lint.per-file-ignores]
# F401 module imported but unused
# F403 ‘from module import *’ used; unable to detect undefined names
# F405 name may be undefined, or defined from star imports: module
# E402 module level import not at top of file
# E501 line too long
# W605 invalid escape sequence
"__init__.py" = ["F401", "F403", "F405", "F821"]
"pydidas/__init__.py" = ["F401", "F403", "F405", "E402", "I"]
"app_processor_.py" = ["C901"]
[tool.pytest.ini_options]
addopts = "--disable-warnings"