-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (104 loc) · 3.39 KB
/
Copy pathpyproject.toml
File metadata and controls
114 lines (104 loc) · 3.39 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "stag"
version = "0.2.0"
description = "Sensor-based Tracking and Analysis of Gait — unsupervised behaviour classification from wearable accelerometers."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
authors = [
{name = "Alexander R. H. Matthews"},
{name = "Lindsay R. Matthews"},
{name = "Bart R. H. Geurten", email = "bart.geurten@otago.ac.nz"},
]
keywords = [
"accelerometer",
"behaviour-classification",
"markov-transition-model",
"deer",
"precision-livestock-farming",
"unsupervised-learning",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"numpy>=1.24",
# pandas>=1.5 — keeps the package installable into the RAPIDS 24.02
# env on Aoraki, which pins cudf <-> pandas<2.0. STAG itself does
# not use any pandas-2.x-only feature; the workstation env will
# happily satisfy this with whichever 2.x is already installed.
"pandas>=1.5",
"scipy>=1.10",
"scikit-learn>=1.3",
"sqlalchemy>=2.0",
"matplotlib>=3.7",
"seaborn>=0.12",
"tqdm>=4.65",
"kneed>=0.8",
"astral>=3.0",
]
[project.optional-dependencies]
gpu = [
"cupy-cuda12x",
# cuml must be installed via conda/rapids — listed here for reference
]
gps = [
"pyproj>=3.5",
"tables>=3.8",
]
docs = [
"sphinx>=7.0",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints>=1.23",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.3",
]
[project.urls]
Repository = "https://github.com/zerotonin/stag"
Documentation = "https://zerotonin.github.io/stag/"
[tool.setuptools.packages.find]
include = ["stag*"]
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = [
"stag/_legacy", # archived pre-refactor code, intentional rot
"docs/_build", # Sphinx output
"results", # generated figures/tables
"stag/embedded/benchmark/*/build",
]
[tool.ruff.lint]
select = ["E", "F", "I", "W", "D"]
ignore = [
"D100", # missing-docstring-in-public-module (covered by ASCII banner)
"D104", # missing-docstring-in-public-package
"D203", # one-blank-line-before-class (mutually exclusive with D211)
"D213", # multi-line-summary-second-line (mutually exclusive with D212)
]
[tool.ruff.lint.per-file-ignores]
# Test files: the test name and class name ARE the documentation; the
# discovery-by-prefix convention makes a separate docstring redundant.
"tests/**/*.py" = ["D101", "D102", "D103", "D106", "D107"]
# CLI / driver scripts are self-documenting via argparse --help; do not
# require per-function docstrings on every helper used inside a script.
"scripts/**/*.py" = ["D101", "D102", "D103", "D107"]
# SLURM-orchestration scripts inside the package are entry points, not
# library API; same exemption as scripts/.
"stag/slurm/**/*.py" = ["D101", "D102", "D103", "D107"]
# Embedded benchmark runners are emulator drivers (called from Make
# targets), not library API; same exemption as scripts/.
"stag/embedded/benchmark/**/*.py" = ["D101", "D102", "D103", "D107"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
testpaths = ["tests"]