-
-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (96 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
105 lines (96 loc) · 2.05 KB
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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling>=1.20" ]
[project]
name = "aleo-explorer"
description = "Open source explorer for the Aleo network."
authors = [ { name = "Haruka Ma", email = "mrx@hcc.im" } ]
version = "0.0.1"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"aiohttp==3.13.3",
"jinja2~=3.1.5",
"psycopg[binary,pool]~=3.3.2",
"python-dotenv~=1.2.1",
"requests~=2.32.3",
"starlette~=0.52.1",
"uvicorn~=0.40.0",
"python_multipart~=0.0.20",
"minify-html~=0.18.1",
"asgiref~=3.11.1",
"simplejson~=3.20.2",
"nest_asyncio~=1.6.0",
# known first-party deps
"aleo-explorer-rust",
]
[project.optional-dependencies]
rocksdb = ["rocksdb-py>=0.0.6"]
[dependency-groups]
dev = [
"ruff>=0.6,<0.12"
]
docs = [
"sphinx",
"sphinxcontrib-httpdomain",
"sphinx-book-theme"
]
[tool.uv.sources]
aleo-explorer-rust = [
{ git = "https://github.com/HarukaMa/aleo-explorer-rust.git" },
]
[tool.hatch.build.targets.sdist]
exclude = [
".venv",
".github",
]
[tool.hatch.build.targets.wheel]
exclude = [
"**/.gitignore",
"**/docs",
]
only-include = [
"src",
]
sources = [
"src",
]
[tool.pyright]
typeCheckingMode = "strict"
include = ["src"]
extraPaths = ["src"]
venvPath = "."
venv = ".venv"
exclude = [
"src/middleware/asgi_logger", ".venv"
]
reportUnusedImport = false
[tool.ruff]
target-version = "py310"
include = [
"src/**/*.py",
"pyproject.toml",
]
extend-exclude = [
"src/**/middleware/asgi_logger/*.py",
]
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"F", # pyflakes
"Q", # flake8-quotes
# "I", # isort
"B", # flake8-bugbear
"A", # flake8-builtins
"ICN", # flake8-import-conventions
]
ignore = [
"E266", # (too many leading '#'): sometimes we use multiple # for separting sections
"E203", # (white space before ':'): this error conflicts with black linting
"E701", # (multiple statements on one line)
"F403", # (from module import *)
"F405", # (name may be undefined, or defined from star imports)
"S101", # (use of assert): mostly we use assert for typing
]