-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
63 lines (55 loc) · 1.39 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.mypy]
check_untyped_defs = true
follow_imports = "silent"
warn_redundant_casts = "true"
warn_unused_ignores = "true"
exclude=[]
[[tool.mypy.overrides]]
module = [
"azure.*",
"boto3",
"botocore.*",
"google.*",
"ibm_vpc.*",
"ibm_cloud_sdk_core.*",
"ibm_platform_services.*",
"knack.*",
"oci.*",
"paramiko.*",
"Softlayer.*",
]
ignore_missing_imports = true
no_implicit_optional = true
# TODO: fix these modules
[[tool.mypy.overrides]]
module = [
"pycloudlib.util",
"pycloudlib.ibm.instance",
"pycloudlib.gce.util",
"pycloudlib.azure.instance",
"pycloudlib.gce.cloud",
"pycloudlib.azure.cloud",
]
check_untyped_defs = false
[tool.ruff]
line-length = 100
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"I", # isort
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pytest.ini_options]
markers = [
"mock_ssh_keys: mock the base cloud _get_ssh_keys method to avoid checking for ssh keys",
"dont_mock_ssh_keys: if a class or method is marked with this, it will override the mock_ssh_keys marker",
"ci: run test as part of continuous integration on PRs using GitHub Actions",
"main_check: run test as part of continuous integration after branch has merged to main using GitHub Actions",
]
testpaths = ["tests/unit_tests"]