-
Notifications
You must be signed in to change notification settings - Fork 57
/
pyproject.toml
154 lines (139 loc) · 4.02 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
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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "sqlalchemy-hana"
version = "3.0.0"
description = "SQLAlchemy dialect for SAP HANA"
keywords = ["sqlalchemy", "sap", "hana"]
requires-python = "~=3.9"
readme = "README.rst"
authors = [{ name = "Christoph Heer", email = "[email protected]" }]
maintainers = [
{ name = "Christoph Heer", email = "[email protected]" },
{ name = "Kai Harder", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: SQL",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = ["sqlalchemy>=1.4.0,<3", "hdbcli~=2.10"]
[project.optional-dependencies]
dev = [
"isort==5.13.2",
"black==24.10.0",
"pre-commit==4.0.1",
"flake8==7.1.1",
"pylint==3.3.3",
"mypy==1.14.0",
"types-hdbcli==2.23.0.20241221",
"typing-extensions==4.12.2",
]
test = [
"pytest==8.3.4",
"pytest-cov==6.0.0",
"coverage[toml]==7.6.1",
"diff-cover[toml]==9.2.1",
]
alembic = ["alembic~=1.12"]
[project.entry-points."sqlalchemy.dialects"]
hana = "sqlalchemy_hana.dialect:HANAHDBCLIDialect"
"hana.hdbcli" = "sqlalchemy_hana.dialect:HANAHDBCLIDialect"
[project.urls]
Repository = "https://github.com/SAP/sqlalchemy-hana"
"Issue Tracker" = "https://github.com/SAP/sqlalchemy-hana/issues"
Changelog = "https://github.com/SAP/sqlalchemy-hana/blob/main/CHANGES.rst"
[project.license]
text = "Apache-2.0"
[tool.setuptools.packages.find]
include = ["sqlalchemy_hana"]
[tool.setuptools.package-data]
sqlalchemy_hana = ["py.typed"]
[tool.isort]
profile = "black"
add_imports = ["from __future__ import annotations"]
[tool.pytest.ini_options]
log_level = "DEBUG"
xfail_strict = true
filterwarnings = [
# all warnings are errors
"error",
]
markers = [
# used by sqlalchemy; registered to avoid warnings
"backend: used by sqlalchemy",
"mypy: used by sqlalchemy",
]
[tool.diff_cover]
addopts = "--strict-markers"
include_untracked = true
fail_under = 80
[tool.pylint.master]
max-line-length = 100
[tool.pylint."messages control"]
enable = ["all"]
disable = [
# ignore fixme comments
"fixme",
# allow disables
"locally-disabled",
"suppressed-message",
"file-ignored",
# allow missing docstrings
"missing-class-docstring",
"missing-function-docstring",
# many false positives
"abstract-method",
"assignment-from-none",
# we need them for the dialect
"unused-argument",
"protected-access",
"not-callable",
"no-member",
# explicit is better than implicit
"use-implicit-booleaness-not-comparison-to-zero",
# ignore too-* checks
"too-many-ancestors",
"too-few-public-methods",
"too-many-public-methods",
"too-many-function-args",
"too-many-lines",
"too-many-branches",
"too-many-return-statements",
"too-many-boolean-expressions",
"too-many-arguments",
"too-many-positional-arguments",
"duplicate-code",
]
[tool.pylint.basic]
good-names = ["visit_TINYINT", "visit_SMALLDECIMAL", "visit_SECONDDATE", "visit_ALPHANUM", "visit_JSON", "visit_REAL_VECTOR", "REAL_VECTOR"]
[tool.mypy]
# formatting
pretty = true
show_column_numbers = true
show_error_codes = true
# checks
strict = true
strict_optional = true
warn_no_return = true
warn_return_any = false
# allow calls to untyped functions
disallow_untyped_calls = false
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
ignore_errors = true
module = ["test.*"]