-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ keywords = [ | |
"postgresql", | ||
"sqlalchemy", | ||
] | ||
license = {text = "MIT"} | ||
license = { text = "MIT" } | ||
authors = [ | ||
{name = "Andreas Motl", email = "[email protected]"}, | ||
{ name = "Andreas Motl", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
|
@@ -36,6 +36,7 @@ classifiers = [ | |
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Unix", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
|
@@ -61,8 +62,7 @@ dependencies = [ | |
"psycopg[binary]", | ||
"sqlalchemy<3,>=2", | ||
] | ||
[project.optional-dependencies] | ||
develop = [ | ||
optional-dependencies.develop = [ | ||
"black<25", | ||
"isort<6", | ||
"poethepoet<0.30", | ||
|
@@ -71,35 +71,66 @@ develop = [ | |
"ruff<0.7", | ||
"validate-pyproject<0.21", | ||
] | ||
release = [ | ||
optional-dependencies.release = [ | ||
"build<2", | ||
'minibump<1; python_version >= "3.10"', | ||
"minibump<1; python_version>='3.10'", | ||
"twine<6", | ||
] | ||
test = [ | ||
optional-dependencies.test = [ | ||
"pandas<2.3", | ||
"polars[pyarrow]<1.2", | ||
"pytest<9", | ||
"pytest-asyncio<1", | ||
"pytest-cov<6", | ||
"sqlalchemy-cratedb", | ||
] | ||
[project.urls] | ||
changelog = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed/blob/main/CHANGES.rst" | ||
documentation = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
homepage = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
repository = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
[project.entry-points."sqlalchemy.dialects"] | ||
"postgresql.asyncpg_relaxed" = "sqlalchemy_postgresql_relaxed.asyncpg:dialect" | ||
"postgresql.psycopg_relaxed" = "sqlalchemy_postgresql_relaxed.psycopg:dialect" | ||
"postgresql.psycopg_relaxed_async" = "sqlalchemy_postgresql_relaxed.psycopg:dialect_async" | ||
urls.changelog = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed/blob/main/CHANGES.rst" | ||
urls.documentation = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
urls.homepage = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
urls.repository = "https://github.com/pyveci/sqlalchemy-postgresql-relaxed" | ||
entry-points."sqlalchemy.dialects"."postgresql.asyncpg_relaxed" = "sqlalchemy_postgresql_relaxed.asyncpg:dialect" | ||
entry-points."sqlalchemy.dialects"."postgresql.psycopg_relaxed" = "sqlalchemy_postgresql_relaxed.psycopg:dialect" | ||
entry-points."sqlalchemy.dialects"."postgresql.psycopg_relaxed_async" = "sqlalchemy_postgresql_relaxed.psycopg:dialect_async" | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
lint.select = [ | ||
# Builtins | ||
"A", | ||
# Bugbear | ||
"B", | ||
# comprehensions | ||
"C4", | ||
# Pycodestyle | ||
"E", | ||
# eradicate | ||
"ERA", | ||
# Pyflakes | ||
"F", | ||
# isort | ||
"I", | ||
# pandas-vet | ||
"PD", | ||
# return | ||
"RET", | ||
# Bandit | ||
"S", | ||
"T20", | ||
"W", | ||
# flake8-2020 | ||
"YTT", | ||
] | ||
|
||
lint.extend-ignore = [ "PD901" ] | ||
lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 120 | ||
|
@@ -109,55 +140,20 @@ multi_line_output = 3 | |
minversion = "2.0" | ||
addopts = "-rsfEX -p pytester --strict-markers --verbosity=3 --cov --cov-report=term-missing --cov-report=xml" | ||
log_level = "DEBUG" | ||
testpaths = ["testing"] | ||
testpaths = [ "testing" ] | ||
xfail_strict = true | ||
markers = [ | ||
] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
"tests/*", | ||
"tests/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
fail_under = 0 | ||
show_missing = true | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
extend-ignore = ["PD901"] | ||
select = [ | ||
# Bandit | ||
"S", | ||
# Bugbear | ||
"B", | ||
# Builtins | ||
"A", | ||
# comprehensions | ||
"C4", | ||
# eradicate | ||
"ERA", | ||
# flake8-2020 | ||
"YTT", | ||
# isort | ||
"I", | ||
# pandas-vet | ||
"PD", | ||
"T20", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
# Pyflakes | ||
"F", | ||
# return | ||
"RET", | ||
] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"tests/*" = ["S101"] # Use of `assert` detected | ||
|
||
|
||
# =================== | ||
# Tasks configuration | ||
# =================== | ||
|
@@ -173,7 +169,7 @@ format = [ | |
{ cmd = "black sqlalchemy_postgresql_relaxed/ tests/" }, | ||
{ cmd = "isort sqlalchemy_postgresql_relaxed/ tests/" }, | ||
# Configure Ruff not to auto-fix (remove!) unused variables (F841) and `print` statements (T201). | ||
{ cmd = "ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 ." }, | ||
{ cmd = "ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 ." }, | ||
{ cmd = "pyproject-fmt pyproject.toml" }, | ||
] | ||
|
||
|