-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (154 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
168 lines (154 loc) · 3.61 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
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
[tool.poetry]
name = "pufferblow"
version = "0.0.1-beta"
description = "The official API for PufferBlow"
authors = ["ramsy0dev <ramsy0dev@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"
packages = [
{include = "pufferblow"},
{include = "docs"}
]
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.115.12"
typer = "^0.20.0"
rich = "^14.2.0"
textual = "^2.1.2"
pycryptodome = "^3.23.0"
loguru = "^0.7.3"
pytz = "^2025.2"
psycopg2-binary = "^2.9.10"
pytest = "^8.4.2"
sqlalchemy = "^2.0.44"
websockets = "^15.0"
httpx = "^0.28.1"
sphinx = "^8.1.3"
sphinx-book-theme = "^1.1.2"
sphinx-autobuild = "^2024.10.3"
sphinx-favicon = "^1.0.1"
myst-parser = "^4.0.0"
sqlalchemy-utils = "^0.42.0"
orjson = "^3.11.3"
basedpyright = "^1.31.7"
pymemcache = "^4.0.0"
cryptography = "^46.0.2"
bcrypt = "^5.0.0"
watchdog = "^6.0.0"
python-magic = "^0.4.27"
pillow = "^12.0.0"
pytest-asyncio = "^1.2.0"
python-multipart = "^0.0.22"
psutil = "^7.1.0"
boto3 = "^1.34.0"
gunicorn = "^23.0.0"
tomli = "^2.0.1"
[tool.poetry.group.dev.dependencies]
loguru = "^0.7.3"
black = "^24.10.0"
isort = "^5.13.2"
ruff = "^0.8.0"
pre-commit = "^4.0.1"
[tool.poetry.plugins."console_scripts"]
pufferblow = "pufferblow:run"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pyprojectx]
main = ["pdm==2.12.4"] # installs pdm to your project instead of globally
[tool.pdm.dev-dependencies] # or the poetry equivalent
dev = [
"basedpyright", # you can pin the version here if you want, or just rely on the lockfile
]
[tool.basedpyright]
# many settings are not enabled even in strict mode, which is why basedpyright includes an "all" option
# you can then decide which rules you want to disable
typeCheckingMode = "standard"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| __pycache__
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["pufferblow"]
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.ruff]
target-version = "py310"
line-length = 88
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**/*" = ["B011"] # assert false
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
show_column_numbers = true
pretty = true
[[tool.mypy.overrides]]
module = [
"loguru.*",
"psycopg2.*",
"cryptography.*",
"bcrypt.*",
"magic.*",
"PIL.*",
"boto3.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]