-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
110 lines (96 loc) · 2.51 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
104
105
106
107
108
109
110
[project]
name = "lr_reduction"
authors = [{ name = "Mat", email = "[email protected]" }]
description = "Reduction scripts for the Liquids Reflectometer. This includes both automated reduction scripts and useful scripts to reprocess data."
version = "0.0.1" # initial version, dynamically overriden
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Neutron reflectometry",
]
dependencies = ["lmfit", "mantid", "matplotlib", "numpy"]
[project.optional-dependencies]
dev = ["mkdocs", "mkdocstrings[python]", "ruff"]
tests = ["pytest"]
# versioningit will generate file _version.py when installing this package, even if installing from sources
[build-system]
requires = ["setuptools >= 40.6.0", "wheel", "toml", "versioningit"]
build-backend = "setuptools.build_meta"
[project.urls]
Homepage = "https://github.com/neutrons/LiquidsReflectometer"
[tool.setuptools.packages.find]
where = ["reduction"]
exclude = ["tests*", "scripts*", "docs*", "notebooks*"]
[tool.setuptools.package-data]
"*" = ["*.txt", "*.json"]
[tool.ruff]
line-length = 140
select = ["A", "ARG", "E", "W", "F", "I", "PT", "RUF100"]
ignore = [
"E402", # module level import not at top of file
"E722", # bare except
"E741",
"E743", # ambiguous function name, generally 'l'
"F403", # wild imports
"F405",
"F821", # unknown names from probably from wild imports
]
[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 = "reduction/lr_reduction/_version.py"
[tool.coverage.run]
branch = true
[tool.coverage.report]
skip_empty = true
[tool.pytest.ini_options]
pythonpath = [
".",
"reduction",
"scripts",
"tests/data/liquidsreflectometer-data/nexus/",
]
testpaths = ["tests"]
norecursedirs = [
".git",
"tmp*",
"_tmp*",
"__pycache__",
"*dataset*",
"*data_set*",
]
markers = [
"datarepo: mark a test as using LiquidsReflectometer-data repository",
"scripts: mark a test as a script that should be run manually",
]
[tool.flake8]
ignore = [
"E114",
"E115",
"E116",
"E121",
"E123",
"E126",
"E133",
"E2",
"E704",
"E722",
"E741",
"E743",
"W503",
"F403",
"F405",
"F999",
]
doctests = false
max-line-length = 130