-
-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (92 loc) · 2.52 KB
/
pyproject.toml
File metadata and controls
101 lines (92 loc) · 2.52 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
[project]
name = "postgrest"
version = "2.28.2" # {x-release-please-version}
description = "PostgREST client for Python. This library provides an ORM interface to PostgREST."
authors = [
{ name = "Lương Quang Mạnh", email = "luongquangmanh85@gmail.com"},
{ name = "Joel Lee", email = "joel@joellee.org"},
{ name = "Anand"},
{ name = "Oliver Rice"},
{ name = "Andrew Smith", email = "a.smith@silentworks.co.uk"},
]
maintainers = [
{ name = "Leonardo Santiago", email = "leonardo.santiago@supabase.io" }
]
readme = "README.md"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
requires-python = ">=3.9"
dependencies = [
"httpx[http2] >=0.26,<0.29",
"deprecation >=2.1.0",
"pydantic >=1.9,<3.0",
"strenum >=0.4.9; python_version < \"3.11\"",
"yarl>=1.20.1",
]
[project.urls]
homepage = "https://github.com/supabase/supabase/tree/main/src/postgrest"
repository = "https://github.com/supabase/supabase-py"
documentation = "https://postgrest-py.rtfd.io"
changelog = "https://github.com/supabase/supabase-py/tree/main/CHANGELOG.md"
[dependency-groups]
test = [
"pytest >= 8.4.1",
"pytest-cov >=6.2.1",
"pytest-depends >=1.0.1",
"pytest-asyncio >=1.0.0",
"unasync >= 0.6.0",
]
lints = [
"ruff >=0.12.1",
"python-lsp-server (>=1.12.2,<2.0.0)",
"pylsp-mypy (>=0.7.0,<0.8.0)",
"python-lsp-ruff (>=2.2.2,<3.0.0)",
]
docs = [
"sphinx >=7.1.2",
"furo >=2023.9.10,<2026.0.0",
]
dev = [ { include-group = "lints" }, { include-group="test" }]
[tool.uv]
default-groups = [ "dev" ]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
# "B",
# flake8-simplify
# "SIM",
# isort
"I",
]
ignore = ["F401", "F403", "F841", "E712", "E501", "E402", "UP006", "UP035"]
# isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = [
"ignore::DeprecationWarning", # ignore deprecation warnings globally
]
[build-system]
requires = ["uv_build>=0.8.3,<0.9.0"]
build-backend = "uv_build"
[tool.mypy]
check_untyped_defs = true
allow_redefinition = true
follow_untyped_imports = true # for deprecation module that does not have stubs
no_warn_no_return = true
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true