-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (71 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
86 lines (71 loc) · 2.13 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
[project]
name = "postprocessing"
description = "Post-processing agent to automatically catalog and reduce neutron data"
version = "4.4.0"
requires-python = ">=3.9"
dependencies = [
"requests",
"stomp.py",
]
license = { text = "MIT" }
[project.urls]
homepage = "https://github.com/neutrons/post_processing_agent"
[build-system]
requires = [
"setuptools",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["postprocessing", "postprocessing.processors", "scripts"]
[tool.ruff]
line-length = 120
# https://beta.ruff.rs/docs/rules/
#select = ["A", "ARG", "BLE", "E", "F", "I", "PT"]
ignore = ["E401", "E402", "F403", "F405" # issues with imports
]
[tool.pytest.ini_options]
pythonpath = [".", "scripts"]
# PIXI configuration
[tool.pixi.workspace]
channels = ["conda-forge", "oncat"]
platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
postprocessing = { path = ".", editable = true }
[tool.pixi.dependencies]
python = ">=3.9"
h5py = "*"
psutil = "*"
requests = "*"
"stomp.py" = "7.*"
pyoncat = "*"
[tool.pixi.feature.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
coverage = "*"
[tool.pixi.feature.dev.dependencies]
pre-commit = "*"
python-build = "*"
pip = "*"
[tool.pixi.feature.build.dependencies]
python-build = "*"
setuptools = "*"
[tool.pixi.environments]
default = { features = ["test", "dev", "build"], solve-group = "default" }
test = { features = ["test"], solve-group = "default" }
dev = { features = ["test", "dev"], solve-group = "default" }
build = { features = ["build"], solve-group = "default" }
[tool.pixi.tasks]
# Testing tasks
test = "python -m pytest tests/"
test-unit = "python -m pytest tests/unit/"
test-integration = "python -m pytest tests/integration/"
test-cov = "python -m pytest -vv --cov=postprocessing --cov=scripts --cov-report=xml --cov-report=term"
# Development tasks
install-pre-commit = "pre-commit install"
lint = "pre-commit run --all-files"
clean = "rm -rf build/ dist/ *.egg-info/ .pytest_cache/ .coverage coverage.xml"
# Build tasks
build = "python -m build"
build-wheel = "python -m build --wheel"
build-sdist = "python -m build --sdist"