-
Notifications
You must be signed in to change notification settings - Fork 26
/
pyproject.toml
59 lines (50 loc) · 1.56 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
[tool.semantic_release]
version_variables = [
"setup.py:__version__",
]
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html#major-on-zero
major_on_zero = false
commit_parser="changelog:PythonSDKCommitParser"
build_command="python setup.py sdist bdist_wheel"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.pylint.FORMAT]
max-line-length=120
[tool.pylint.MASTER]
disable= [
"C0114", # Missing module docstring (missing-module-docstring)
"C0115", # Missing class docstring (missing-class-docstring)
"C0116", # Missing function or method docstring (missing-function-docstring)
"E0611", # No name 'Empty' in module 'google.protobuf.empty_pb2' (no-name-in-module) — proto code creates attributes in runtime and linter goes crazy
"R0903", # Too few public methods (1/2) (too-few-public-methods)
"R0913", # Too many arguments (6/5) (too-many-arguments)
]
[tool.flake8]
max-line-length = 120
max-complexity = 15
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
ignore = ['E203',]
[tool.mypy]
disallow_untyped_defs = true
disallow_any_unimported = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unreachable = true
warn_unused_configs = true
warn_redundant_casts = true
# mypy per-module options:
[[tool.mypy.overrides]]
module = [
"yandex.cloud.*",
]
disallow_untyped_defs = false
check_untyped_defs = false
disallow_any_unimported = false
[[tool.mypy.overrides]]
module = [
"google.rpc.status_pb2.*",
"google.rpc.*",
]
ignore_missing_imports = true