-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (100 loc) · 2.36 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
[project]
name = "solana-copy-trader"
version = "0.1.0"
description = "Solana Copy Trader"
authors = [
{name = "tumf", email = "tumf@users.noreply.github.com"},
]
dependencies = [
"solana>=0.36.3",
"base58>=2.1.1",
"python-dotenv>=1.0.1",
"requests>=2.32.3",
"loguru>=0.7.3",
"anyio>=4.3.0",
"mnemonic>=0.21",
"solders>=0.23.0",
"web3>=7.7.0",
"aiohttp>=3.11.11",
"pyyaml>=6.0.2",
"sqlalchemy>=2.0.37",
"alembic>=1.14.1",
"pydantic>=2.10.6",
]
requires-python = ">=3.12"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.optional-dependencies]
dev = [
"black>=24.10.0",
"isort>=6.0.0",
"mypy>=1.14.1",
"pre-commit>=4.1.0",
"pytest>=8.3.4",
"pytest-env>=1.1.5",
"pytest-mock>=3.14.0",
"pytest-asyncio>=0.25.3",
"pytest-cov>=6.0.0",
"ruff>=0.9.3",
]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.uv.sources]
solana = { git = "https://github.com/michaelhly/solana-py.git" }
[tool.pytest.ini_options]
pythonpath = [
".",
]
markers = [
"asyncio: mark test as async",
]
asyncio_mode = "auto"
[tool.pytest-asyncio]
mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.pytest]
addopts = "--asyncio-mode=auto"
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
ignore_errors = true
omit = [
"tests/*",
"setup.py",
]
[tool.mypy]
# Basic settings
python_version = "3.12"
warn_return_any = false # Allow Any type return values
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = false
# Ignore type checking for third-party libraries
ignore_missing_imports = true
# Ignore low priority warnings
disable_error_code = [
"import-untyped", # Ignore imports from modules without type information
"annotation-unchecked", # Ignore functions without type annotations
"no-any-return", # Ignore Any type returns
]
# Exclude specific modules from type checking
exclude = [
"tests/", # Exclude test code from type checking
"migrations/", # Exclude migration files from type checking
]