-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
101 lines (90 loc) · 2.31 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.poetry]
name = "relayer-example"
version = "0.1.0"
description = "Relayer example for Stakewise Operator service"
authors = ["StakeWise Labs <[email protected]>"]
package-mode = false
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
python-decouple = "==3.8"
py-ecc = "==6.0.0"
sw-utils = {git = "https://github.com/stakewise/sw-utils.git", rev = "v0.6.18"}
click = "==8.1.7"
tomli = "~2"
prometheus-client = "==0.17.1"
pyyaml = "==6.0.1"
python-json-logger = "==2.0.7"
fastapi = "==0.111.0"
staking-deposit = { git = "https://github.com/ethereum/staking-deposit-cli.git", rev = "v2.4.0" }
[tool.poetry.group.dev.dependencies]
pylint = "==3.0.1"
mypy = "==1.6.1"
isort = "==5.12.0"
pre-commit = "==3.5.0"
Flake8-pyproject = "==1.2.3"
bandit = { version = "==1.7.5", extras = ["toml"] }
black = { version = "==23.10.0", extras = ["d"] }
flake8-print = "==5.0.0"
flake8-datetimez = "==20.10.0"
types-pyyaml = "==6.0.12.12"
types-requests = "^2.31.0"
types-setuptools = "^70.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.bandit]
exclude_dirs = ["*/tests/*", "src/config/networks.py", "conftest.py"]
skips = ["B608"]
[tool.pylint."pre-commit-hook"]
disable = [
"C0103", # invalid-name
"C0114", # missing-class-docstring
"C0115", # missing-class-docstring
"C0116", # missing-function-docstring
"R0801", # duplicate-code
"R0903", # too-few-public-methods
"W0703", # broad-except
"W0718" # broad-exception-caught
]
ignore-paths=["src/.*/tests/.*", "src/test_fixtures/.*"]
ignore=["conftest.py"]
[tool.pylint."BASIC"]
good-names = ["db"]
ignored-modules=["milagro_bls_binding"]
[tool.flake8]
extend-ignore = [
"E203", # Whitespace before ':', conflicts with black
"E501" # line length will be checked by pylint
]
[tool.mypy]
exclude = ["test"]
ignore_missing_imports = true
python_version = "3.10"
disallow_incomplete_defs = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = 'web3.*'
no_implicit_optional = false
[tool.isort]
profile = "black"
[tool.black]
line-length = 100
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''