-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
72 lines (59 loc) · 1.84 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
[project]
name = "garnet_reduction"
description = "Single Crystal Graphical Advanced Reduction Neutron Event Toolkit"
dynamic = ["version"]
requires-python = ">=3.10"
readme = "README.md"
dependencies = [
"mantidworkbench >= 6.7.20230830",
]
license = { text = "GPL3.0" }
[project.urls]
homepage = "https://github.com/neutrons/garnet_reduction/" # if no homepage, use repo url
[build-system]
requires = [
"setuptools",
"wheel",
"toml",
"versioningit"
]
build-backend = "setuptools.build_meta"
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
[tool.versioningit.write]
file = "src/garnet/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
[tool.setuptools.package-data]
"*" = ["*.yml","*.yaml","*.ini"]
[project.scripts]
garnet_reduction = "garnet.workflow:main"
[tool.pytest.ini_options]
markers = [
"resources_intensive: mark test as using a lot of computing resources: CPU, memory, etc.",
"mount_sns: mark a test as using /SNS/ data mount",
"mount_hfir: mark a test as using /HFIR/ data mount",
"datarepo: Tests that require the garnet_data submodule"
]
[tool.coverage.report]
exclude_lines = [
"except ImportError:",
"except ModuleNotFoundError:",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["A", "ARG","ASYNC","BLE","C90", "D", "E", "F", "I", "N", "UP032", "W"]
ignore = ["D203", # conflict with D211
"D213", # conflict with D212
"ANN201", "D400", "D401", "D415", # Unnecessary
"ARG002", "N802", "N803","N806", "D100","D101","D102","D103", "D104","D107","D417" # put it back in the future
]