forked from fetchai/cosmpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
183 lines (162 loc) · 4.4 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[tool.poetry]
name = "cosmpy"
version = "0.9.2"
description = "A library for interacting with the cosmos networks"
authors = ["Fetch.AI Limited"]
readme = "README.md"
license = "Apache-2.0"
homepage = "https://github.com/fetchai/cosmpy"
repository = "https://github.com/fetchai/cosmpy"
documentation = "https://docs.fetch.ai/CosmPy/"
keywords = ["CosmPy", "Cosmos-SDK"]
classifiers=[
"Environment :: Console",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.8"
ecdsa = "*"
bech32 = "*"
requests = "*"
protobuf = ">=4.21.6,<5.0dev"
grpcio = "*"
jsonschema = ">=3.2.0,<5"
python-dateutil = "*"
pycryptodome = "^3.18.0"
googleapis-common-protos = "*"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
check-manifest = "*"
tox = "^3.26"
flake8 = "==5.0.4"
black = "^22.10"
mypy = "==0.982"
bandit = "==1.7.4"
safety = "==2.3.5"
isort = "==5.10.1"
darglint = "==1.8.1"
vulture = "==2.6"
pylint = "==2.15.5"
liccheck = "==0.7.2"
flake8-copyright = "==0.2.3"
grpcio-tools = "*"
flake8-bugbear = "==22.10.25"
flake8-eradicate = "==1.4.0"
flake8-docstrings = "==1.6.0"
flake8-isort = "==5.0"
pyyaml = "==5.3.1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.1.4"
pydoc-markdown = "==4.6.3"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
coverage = "*"
pytest = "*"
pytest-rerunfailures = "*"
[tool.mypy]
python_version = 3.8
strict_optional = true
exclude = "whitelist.py"
[[tool.mypy.overrides]]
module = [
"cosmpy.protos.*",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"google.*",
"requests.*",
"ecdsa.*",
"setuptools.*",
"grpc.*",
"bech32.*",
"docker.*",
"pytest.*",
"click.*",
"certifi.*",
"mbedtls.*",
"jsonschema.*",
"dateutil.*"
]
ignore_missing_imports = true
[tool.isort]
# for black compatibility
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
# custom configurations
order_by_type = false
case_sensitive = true
lines_after_imports = 2
skip = [
"cosmpy/protos",
]
skip_glob = "**/*_pb2.py"
known_first_party = "cosmpy"
known_local_folder = "tests"
sections = ["FUTURE",'STDLIB',"THIRDPARTY","FIRSTPARTY","LOCALFOLDER"]
[tool.pylint.main]
ignore= ["protos"]
disable = ["C0103","C0301", "R0801","E1101","E0611"]
# See here for more options: https://www.codeac.io/documentation/pylint-configuration.html
# C0103: REST method names are equivalent to their gRPC counterparts and those are autogenerated with invalid names according to PyLint
# C0301: http://pylint-messages.wikidot.com/messages:c0301 > Line too long (%s/%s), # kept as no harm
# R0801: similar lines, Examples use similair lines for arugments passing.
# E1101: Function %r has no %r member. Tx and ANY's member's are not recognised.
# E0611: No name in module. No name 'Any' in module 'google.protobuf.any_pb2'.
[tool.pylint.imports]
ignored-modules = [".*_pb2.py", "google"]
[tool.pylint.design]
min-public-methods = 1
max-public-methods = 36
max-returns = 10
max-bool-expr = 7
max-args = 27
max-locals = 31
max-statements = 80
max-parents = 11
max-branches = 24
max-attributes = 38
[tool.pylint.refactoring]
max-nested-blocks = 6
[tool.coverage.run]
omit = [
"*/.local/*",
"tests/*",
"*/.tox/*",
"cosmpy/protos/*",
]
[tool.coverage.html]
directory = "coverage_report"
[tool.check-manifest]
ignore = ["Makefile", "install_packages.py"]
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration (deselect with '-m \"not integration\"')",
"flaky: marks tests as flaky (deselect with '-m \"not flaky\"')",
"thirdparty: marks tests as third-party",
]