-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (174 loc) · 4.52 KB
/
Copy pathpyproject.toml
File metadata and controls
189 lines (174 loc) · 4.52 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "hpcperfstats"
version = "3.0"
description = "A performance monitoring and analysis package for High Performance Computing Platforms"
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
authors = [
{ name = "Texas Advanced Computing Center", email = "sharrell@tacc.utexas.edu" },
]
urls = { homepage = "http://www.tacc.utexas.edu", repository = "https://github.com/TACC/hpcperfstats" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy==2.5.1",
"numexpr",
"psycopg==3.3.4",
"pandas==3.0.5",
"bokeh==3.9.2",
"Django>=6.0.7,<6.1",
"python-hostlist",
"pika==1.4.2",
"mysqlclient",
"gunicorn",
"requests>=2.34.2",
"cryptography>=50.0.0",
"pillow>=12.3.0",
"tzdata",
"redis==8.1.0",
"djangorestframework",
"drf-spectacular>=0.30.0",
"django-cors-headers",
"setproctitle",
]
[project.optional-dependencies]
test = [
"pytest>=9.1.1",
"pytest-django>=4.12.0",
"pytest-cov>=7.1.0",
"playwright>=1.62.0",
"psycopg[binary]",
]
dev = [
"ruff>=0.16.1",
"pylint>=4.0.6", # optional; Ruff is the primary linter (see docs/TESTING.md)
"vulture>=2.16",
"pre-commit>=4.6.1",
]
[tool.pytest.ini_options]
testpaths = ["hpcperfstats"]
python_files = ["test_*.py", "*_test.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
pythonpath = ["."]
DJANGO_SETTINGS_MODULE = "hpcperfstats.site.hpcperfstats_site.settings"
django_find_project = false
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]
markers = [
"django: marks tests requiring Django (dbs, settings).",
"machine_unit_mock: site.lib.machine.tests mocks only; no DB (see hpcperfstats/conftest.py).",
"live_redis: live Redis cache integration; requires HPCPERFSTATS_PYTEST_LIVE_REDIS=1 and compose redis.",
"stress_host_data: optional Timescale stress in tests/stress_host_data; requires HPCPERFSTATS_STRESS_HOST_DATA=1.",
"pipeline_e2e: optional full-stack pipeline tests in tests/pipeline_e2e; requires HPCPERFSTATS_PIPELINE_E2E=1 and compose.",
]
[tool.setuptools]
script-files = [
"hpcperfstats/analysis/metrics/update_metrics.py",
"hpcperfstats/site/manage.py",
"hpcperfstats/dbload/sync_acct.py",
"hpcperfstats/dbload/sync_timedb.py",
"hpcperfstats/dbload/sync_timedb_archive.py",
"hpcperfstats/listend.py",
"hpcperfstats/listend_drain.py",
"scripts/apply_compose_cpu_pinning.py",
"scripts/invalidate_archive_members.py",
]
[tool.setuptools.packages.find]
include = ["hpcperfstats*"]
[tool.setuptools.package-data]
hpcperfstats = [
"tests/fixtures/axe-core/axe.min.js",
"tests/fixtures/axe-core/README.md",
]
"hpcperfstats.dbload.lib.monitor_naming" = [
"monitor_variable_rename_map.yaml",
]
"hpcperfstats.site.hpcperfstats_site" = [
"static/**/*",
]
[tool.ruff]
target-version = "py312"
line-length = 80 # Google style guide
extend-exclude = [
"migrations",
".venv",
"env",
".git",
"__pycache__",
".ruff*",
".tools",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # import sorting
"B", # flake8-bugbear
"W", # pycodestyle warnings
]
ignore = [
# Add specific rule codes here if Ruff is too strict somewhere.
]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true
[tool.hpcperfstats.testing]
web_e2e_runner = "tests/run_web_e2e_workflow.sh"
db_pytest_runner = "tests/run_db_pytest_workflow.sh"
redis_cache_pytest_runner = "tests/run_redis_cache_pytest_workflow.sh"
[tool.coverage.run]
branch = true
source = ["hpcperfstats"]
omit = [
"*/migrations/*",
"*/tests/*",
"*/test_*.py",
"*/conftest.py",
]
[tool.coverage.report]
skip_empty = true
show_missing = true
precision = 1
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.vulture]
paths = ["hpcperfstats"]
min_confidence = 80
ignore_decorators = [
"@receiver",
"@pytest.fixture",
"@api_view",
"@authentication_classes",
"@contextmanager",
]
ignore_names = [
"urlpatterns",
"ready",
"Meta",
"handle",
"add_arguments",
]