-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (74 loc) · 2.22 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (74 loc) · 2.22 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
[project]
name = "nerve_lib"
version = "1.4.0"
description = "Nerve API library"
authors = [{ name = "Nerve Development Team", email = "dev@nerve.cloud" }]
readme = "README.md"
requires-python = ">=3.11,<4.0"
dependencies = [
"pyyaml (>=6.0.2,<7.0.0)",
"paramiko (>=4.0.0,<5.0.0)",
"scp (>=0.15.0,<0.16.0)",
"requests-toolbelt (>=1.0.0,<2.0.0)",
"asyncssh (>=2.22.0,<3.0.0)",
"pdoc3 (>=0.11.6,<0.12.0)",
]
[tool.poetry.group.dev.dependencies]
lefthook = "^2.0.15"
ruff = "^0.15.0"
detect-secrets = "^1.5.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
[tool.ruff]
line-length = 110
preview = true
# Exclude a variety of commonly ignored directories.
extend-exclude = ["*/__init__.py"]
output-format = "concise"
[tool.ruff.lint]
# check rules and warning in https://docs.astral.sh/ruff/rules/
# Enable Isort ("I")
# Enable docstyle ("D")
# Enable pylint ("PL")
# Enable flake8-logging-format ("G")
# Enable flake8-import-str-concat ("ISC")
# Enable flake8-import-conventions ("ICN")
# Enable pep8-naming ("N")
# Enable flake8-copyright ("CPY")
# Enable flake8-return ("RET")
# Enable flake8-fixme
# Enable ruff specific rules ("RUF")
extend-select = [
"I",
"G",
"PL",
"ISC002",
"ISC003",
"ICN",
"N",
"CPY",
"RET",
"FIX",
"RUF",
]
#Ignore warnings/errors when checking code
ignore = []
unfixable = [
"PLW1510", # `subprocess.run` without explicit `check` argument - not deemed safe
"PLW1514", # `open` in text mode without explicit `encoding` argument - no autofix for encoding issues
"RET503", # Missing explicit `return` at the end of function
]
pydocstyle.convention = "numpy"
isort.force-single-line = true
# Maximum number of arguments allowed for a function or method definition (see: PLR0913).
pylint.max-args = 12
# Maximum number of branch for function / method body (see R0912).
pylint.max-branches = 30
# Maximum number of return / yield for function / method body (see R0911).
pylint.max-returns = 8
# Maximum number of statements in function / method body (see R0915).
pylint.max-statements = 80
pep8-naming.ignore-names = ["Node", "WorkloadVersion"]