-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
87 lines (79 loc) · 2.1 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
[tool.poetry]
name = "sarc"
version = "0.1.0"
description = "Surveillance et analyse des ressources de calcul"
authors = ["Mila-IDT"]
readme = "README.md"
packages = [{include = 'sarc'}]
[tool.poetry.dependencies]
python = "^3.9"
fabric = "^3.0.0"
prometheus-api-client = "^0.5.2"
pydantic = "^1.10.4"
pydantic-mongo = "^1.0.1"
pymongo = "^4.3.3"
numpy = "^1.24.0"
ldap3 = "^2.9.1"
python-hostlist = "^1.23.0"
tqdm = "^4.64.1"
flatten-dict = "^0.4.2"
simple-parsing = "^0.1.0"
sphinx = "^6.2.1"
myst-parser = "^2.0.0"
sphinx-rtd-theme = "^1.2.2"
nbsphinx = "^0.9.3"
opentelemetry-api = "^1.23.0"
opentelemetry-sdk = "^1.23.0"
requests-mock = "^1.11.0"
pandas = "< 2.1.0"
gifnoc = "^0.2.3"
watchdog = "^4.0.0"
python-dateutil = "^2.9.0.post0"
[tool.poetry.group.dev.dependencies]
black = ">= 22.12.0"
pylint = ">= 2.15.10"
isort = ">= 5.11.4"
mypy = ">= 0.991"
pytest = ">= 7.2.1"
pytest-cov = ">= 4.0.0"
pytest-regressions = ">= 2.4.2"
tox = ">= 4.4.5"
pytest-freezegun = ">= 0.4.2"
fabric = {extras = ["testing"], version = "^3.0.0"}
pytest-timeout = "^2.1.0"
pytest-custom-exit-code = ">= 0.3.0"
coverage = "^7.2.7"
pytest-xdist = "^3.3.1"
jupyter = "^1.0.0"
tabulate = "^0.9.0"
[tool.poetry.group.examples.dependencies]
seaborn = "^0.12.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
sarc = 'sarc.cli:main'
[tool.pytest]
norecursedirs = "tests/common"
[tool.pylint]
ignore-paths = []
disable = [
"no-self-argument", # Pydantic validators don't have one
"too-few-public-methods", # Triggered on Pydantic models
"import-outside-toplevel", # These imports are useful to reduce loading times
"too-many-arguments",
"too-many-locals",
"too-many-positional-arguments",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"invalid-name",
"no-else-return", # Bad rule IMO (- OB)
"line-too-long", # Black takes care of line length.
"logging-fstring-interpolation",
"duplicate-code",
"too-many-positional-arguments",
]
extension-pkg-whitelist = "pydantic"
[tool.isort]
profile = "black"