-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (124 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
139 lines (124 loc) · 3.44 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "google-cloud-sql-postgres-sqlalchemy"
version = "1.0.0"
description = "SQLAlchemy engine utilities for PostgreSQL and Google Cloud SQL"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Javad", email = "javad@javadebadi.com"}
]
keywords = ["sqlalchemy", "postgresql", "google-cloud-sql", "pg8000", "database"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"sqlalchemy>=2.0.0",
"pg8000>=1.30.0",
"cloud-sql-python-connector[pg8000]>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/javadebadi/google-cloud-sql-postgres-sqlalchemy"
Repository = "https://github.com/javadebadi/google-cloud-sql-postgres-sqlalchemy"
[tool.setuptools.packages.find]
where = ["."]
include = ["google_cloud_sql_postgres_sqlalchemy*"]
exclude = ["tests*"]
[tool.setuptools.package-data]
google_cloud_sql_postgres_sqlalchemy = ["py.typed"]
[dependency-groups]
dev = [
"bandit>=1.9.2",
"black>=25.9.0",
"build>=1.3.0",
"interrogate>=1.7.0",
"invoke>=2.2.1",
"lxml>=6.0.2",
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.1",
"mkdocstrings>=1.0.0",
"mkdocstrings-python>=2.0.1",
"mypy>=1.17.1,<1.18",
"pip-audit>=2.10.0",
"pip-licenses>=5.5.0",
"pylint>=4.0.4",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"radon>=6.0.1",
"ruff>=0.14.2",
"twine>=6.0.0",
"ty>=0.0.7",
"vulture>=2.14",
]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort-like import sorting
"ANN", # Enforce type annotations
"UP", # pyupgrade
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
]
ignore = []
[tool.black]
line-length = 88
[tool.mypy]
python_version = "3.10"
strict = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = false
no_implicit_optional = true
ignore_missing_imports = true
exclude = ["build/", "dist/"]
[[tool.mypy.overrides]]
module = "pg8000.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "google.cloud.sql.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --strict-markers"
[tool.coverage.run]
source = ["google_cloud_sql_postgres_sqlalchemy"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]