-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
77 lines (65 loc) · 1.66 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
[project]
name="gh-spack-pr"
description="Tools and GitHub CLI extension to build PRs for the spack package manager"
dependencies=[
"pexpect",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
'black',
"isort",
"mypy",
"pylint",
]
[tool.black]
line-length = 99
target-version = ['py38', 'py39', 'py310']
[tool.isort]
line_length = 99
profile = "black"
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"LOCALFOLDER",
]
[tool.codespell]
ignore-words-list = "THIRDPARTY"
[tool.mypy]
python_version = "3.10"
files = ['*.py']
# -----------------------------------------------------------------------------
# Pylint - https://pylint.pycqa.org/en/latest/technical_reference/features.html
# -----------------------------------------------------------------------------
[tool.pylint.messages_control]
# These are safe to disable, fixing them is best done during a later code cleanup phases
disable = [
"use-implicit-booleaness-not-comparison",
"fixme"
]
# Maximum number of branch for function / method body.
# defaults to: max-branches=12
max-branches = 20
# Maximum number of lines in a module.
# defaults to: max-module-lines=1000
max-module-lines=2400
# Maximum number of locals for function / method body.
# defaults to: max-locals=15
max-locals = 24
max-returns = 8
# Maximum number of statements in function / method body.
# defaults to: max-statements=50
max-statements = 100
[tool.pyright]
python_version = "3.10"
verboseOutput = true
# useLibraryCodeForTypes = true
# reportMissingImports = true
# reportWildcardImportFromLibrary = true
include = ['.']
ignore = ['']
# extraPaths = ['']
[tool.pytype]
inputs = ["cli/check.py"]
exclude = ["cli/_vendor/**"]