-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
126 lines (117 loc) · 3.17 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
[tool.poetry]
name = "thirdweb-nebula"
version = "0.1.0"
description = "A Python SDK for interacting with the Nebula API"
authors = ["Stanley <[email protected]>"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/gwszeto/nebula-python"
repository = "https://github.com/gwszeto/nebula-python"
documentation = "https://github.com/gwszeto/nebula-python#readme"
keywords = ["nebula", "thirdweb", "api", "sdk", "blockchain"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP",
]
packages = [
{ include = "nebula", from = "src" }
]
[tool.poetry.dependencies]
python = "^3.12"
pydantic = "^2.10.4"
sseclient = "^0.0.27"
requests = "^2.31.0"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.4"
mock = "^5.1.0"
python-dotenv = "^1.0.1"
[tool.poetry.group.dev.dependencies]
pyright = "^1.1.391"
ruff = "^0.8.4"
[tool.pyright]
include = ["src"]
exclude = ["**/node_modules", "**/__pycache__"]
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownVariableType = false
reportUnknownArgumentType = false
reportUnknownLambdaType = false
reportUnknownParameterType = false
reportPrivateUsage = "none"
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = ["scripts", "tests", "evals"]
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle (error)
"F", # pyflakes
"W", # pycodestyle (warning)
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"A", # flake8-builtins
"B", # flake8-bugbear
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"COM", # flake8-commas
"SIM", # flake8-simplify
"RET", # flake8-return
"YTT", # flake8-2020
"PTH", # flake8-use-pathlib
"INT", # flake8-gettext
"TID", # flake8-tidy-imports
"SLOT", # flake8-slots
"SLF", # flake8-self
"RSE", # flake8-raise
"Q", # flake8-quotes
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"T20", # flake8-print
"PIE", # flake8-pie
"LOG", # flake8-logging
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"FA", # flake8-future-annotations
"T10", # flake8-debugger
"DTZ", # flake8-datetimez
"EXE", # flake8-executable
"FBT", # flake8-boolean-trap
"RUF", # ruff
"C", # conventions
"C90", # mccabe
"FURB", # refurb
"PERF", # perflint
"FLY", # flynt
"PLC", # pylint-convention
"PLE", # pylint-error
"PLW", # pylint-warning
"PGH", # pygrep-hooks
"NPY", # numpy
#"ANN", # annotation
#"ERA", # eradicate
#"PLR", # pylint-refactor
#"S", # flake8-bandit
#"ARG", # flake8-unused-arguments
#"TRY", # tryceratops
#"EM", # flake8-errmsg
#"BLE", # flake8-blind-except
]
ignore = [
"SIM103", # needless-bool
"E501", # line-too-long
"UP017", # datetime-timezone-utc
"ISC001", # implicit-str-concat
"COM812", # missing-trailing-comma
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"