-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (109 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (109 loc) · 2.69 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
[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",
"psycopg",
"pandas",
"bokeh",
"Django~=6.0",
"python-hostlist",
"pika",
"mysqlclient",
"gunicorn",
"requests",
"pytz",
"tzdata",
"redis",
"djangorestframework",
"django-cors-headers",
]
[project.optional-dependencies]
test = [
"pytest>=7.0",
"pytest-django>=4.5",
"pytest-cov>=4.0",
"playwright>=1.54.0",
]
dev = [
"yapf", # Google style formatter
]
[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).",
]
[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",
]
[tool.setuptools.packages.find]
include = ["hpcperfstats*"]
[tool.setuptools.package-data]
hpcperfstats = ["cfg.py"]
[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"